nixpkgs/nixos/tests/pam/pam-file-contents.nix
Shogo Takata 79d17dc330 nixos.tests.pam-file-contents: fix build failure
This fixes the test for pam file contents.
The pam file started using fully-qualified paths in the following
commit.
7306423158

(cherry picked from commit d04bf86381)
2025-05-26 03:06:24 +00:00

33 lines
651 B
Nix

let
name = "pam";
in
import ../make-test-python.nix (
{ pkgs, ... }:
{
name = "pam-file-contents";
nodes.machine =
{ ... }:
{
imports = [ ../../modules/profiles/minimal.nix ];
security.krb5.enable = true;
users = {
mutableUsers = false;
users = {
user = {
isNormalUser = true;
};
};
};
};
testScript =
builtins.replaceStrings
[ "@@pam@@" "@@pam_ccreds@@" "@@pam_krb5@@" ]
[ pkgs.pam.outPath pkgs.pam_ccreds.outPath pkgs.pam_krb5.outPath ]
(builtins.readFile ./test_chfn.py);
}
)