mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
nixos-tests: drop < 23.11 compat code
This commit is contained in:
parent
98aa76b72e
commit
2168851d58
1 changed files with 2 additions and 9 deletions
|
@ -34,16 +34,9 @@
|
|||
secrets."nested/test/file".owner = "example-user";
|
||||
};
|
||||
|
||||
users.users.example-user = let
|
||||
passwordFileKey =
|
||||
if (lib.versionAtLeast (lib.versions.majorMinor lib.version)
|
||||
"23.11") then
|
||||
"hashedPasswordFile"
|
||||
else
|
||||
"passwordFile";
|
||||
in {
|
||||
users.users.example-user = {
|
||||
isNormalUser = true;
|
||||
${passwordFileKey} = config.sops.secrets.test_key.path;
|
||||
hashedPasswordFile = config.sops.secrets.test_key.path;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue