1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-03-15 13:08:21 +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"; secrets."nested/test/file".owner = "example-user";
}; };
users.users.example-user = let users.users.example-user = {
passwordFileKey =
if (lib.versionAtLeast (lib.versions.majorMinor lib.version)
"23.11") then
"hashedPasswordFile"
else
"passwordFile";
in {
isNormalUser = true; isNormalUser = true;
${passwordFileKey} = config.sops.secrets.test_key.path; hashedPasswordFile = config.sops.secrets.test_key.path;
}; };
}; };