1
0
Fork 0
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:
Jörg Thalheim 2024-02-08 13:59:51 +01:00 committed by mergify[bot]
parent 98aa76b72e
commit 2168851d58

View file

@ -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;
};
};