Skip to content

Commit

Permalink
nixos-tests: drop < 23.11 compat code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Feb 8, 2024
1 parent 98aa76b commit 2168851
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkgs/sops-install-secrets/nixos-test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};

Expand Down

0 comments on commit 2168851

Please sign in to comment.