mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
fix sops nixos module
This commit is contained in:
parent
1745bb9f95
commit
7bd84011ef
2 changed files with 3 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.sops;
|
cfg = config.sops;
|
||||||
users = config.users.users;
|
users = config.users.users;
|
||||||
sops-install-secrets = pkgs.callPackage ../../pkgs/sops-install-secrets {};
|
sops-install-secrets = (pkgs.callPackage ../.. {}).sops-install-secrets;
|
||||||
secretType = types.submodule ({ config, ... }: {
|
secretType = types.submodule ({ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>, pkgs ? import <nixpkgs> }:
|
{ makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>, pkgs ? import <nixpkgs> }:
|
||||||
{
|
{
|
||||||
ssh-keys = makeTest {
|
ssh-keys = makeTest {
|
||||||
|
name = "sops-ssh-keys";
|
||||||
nodes.server = { ... }: {
|
nodes.server = { ... }: {
|
||||||
imports = [ ../../modules/sops ];
|
imports = [ ../../modules/sops ];
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
@ -22,6 +23,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
pgp-keys = makeTest {
|
pgp-keys = makeTest {
|
||||||
|
name = "sops-pgp-keys";
|
||||||
nodes.server = { pkgs, lib, ... }: {
|
nodes.server = { pkgs, lib, ... }: {
|
||||||
imports = [ ../../modules/sops ];
|
imports = [ ../../modules/sops ];
|
||||||
sops.gnupgHome = "/run/gpghome";
|
sops.gnupgHome = "/run/gpghome";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue