Skip to content

Commit

Permalink
move nixos-test back to defaultSopsFile
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbe committed Oct 29, 2023
1 parent 109f0e3 commit addbe58
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkgs/sops-install-secrets/nixos-test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
bits = 4096;
path = ./test-assets/ssh-key;
}];
sops.defaultSopsFiles = [ ./test-assets/secrets.yaml ];
sops.defaultSopsFile = ./test-assets/secrets.yaml;
sops.secrets.test_key = { };
};

Expand All @@ -29,7 +29,7 @@
imports = [ ../../modules/sops ];
sops = {
age.keyFile = ./test-assets/age-keys.txt;
defaultSopsFiles = [ ./test-assets/secrets.yaml ];
defaultSopsFile = ./test-assets/secrets.yaml;
secrets.test_key.neededForUsers = true;
secrets."nested/test/file".owner = "example-user";
};
Expand Down Expand Up @@ -62,7 +62,7 @@
imports = [ ../../modules/sops ];
sops = {
age.keyFile = ./test-assets/age-keys.txt;
defaultSopsFiles = [ ./test-assets/secrets.yaml ];
defaultSopsFile = ./test-assets/secrets.yaml;
secrets.test_key = { };
keepGenerations = lib.mkDefault 0;
};
Expand Down Expand Up @@ -103,7 +103,7 @@
imports = [ ../../modules/sops ];
sops = {
age.keyFile = ./test-assets/age-keys.txt;
defaultSopsFiles = [ ./test-assets/secrets.yaml ];
defaultSopsFile = ./test-assets/secrets.yaml;
secrets.test_key = { };
};
};
Expand All @@ -127,7 +127,7 @@
path = ./test-assets/ssh-ed25519-key;
}];
sops = {
defaultSopsFiles = [ ./test-assets/secrets.yaml ];
defaultSopsFile = ./test-assets/secrets.yaml;
secrets.test_key = { };
# Generate a key and append it to make sure it appending doesn't break anything
age = {
Expand Down Expand Up @@ -157,7 +157,7 @@
};

sops.gnupg.home = "/run/gpghome";
sops.defaultSopsFiles = [ ./test-assets/secrets.yaml ];
sops.defaultSopsFile = ./test-assets/secrets.yaml;
sops.secrets.test_key.owner = config.users.users.someuser.name;
sops.secrets."nested/test/file".owner = config.users.users.someuser.name;
sops.secrets.existing-file = {
Expand Down Expand Up @@ -208,7 +208,7 @@
imports = [ ../../modules/sops ];
sops = {
age.keyFile = ./test-assets/age-keys.txt;
defaultSopsFiles = [ ./test-assets/secrets.yaml ];
defaultSopsFile = ./test-assets/secrets.yaml;
secrets.test_key = { };
};

Expand Down Expand Up @@ -267,7 +267,7 @@

sops = {
age.keyFile = ./test-assets/age-keys.txt;
defaultSopsFiles = [ ./test-assets/secrets.yaml ];
defaultSopsFile = ./test-assets/secrets.yaml;
secrets.test_key = {
restartUnits = [ "restart-unit.service" "reload-unit.service" ];
reloadUnits = [ "reload-trigger.service" ];
Expand Down

0 comments on commit addbe58

Please sign in to comment.