summary refs log tree commit diff
path: root/nixos/tests/pam/pam-file-contents.nix
blob: 86c61003aeb6e8e2f7ece6ef71e99b2597eb902d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
let
  name = "pam";
in
import ../make-test-python.nix ({ pkgs, ... }: {

  nodes.machine = { ... }: {
    imports = [ ../../modules/profiles/minimal.nix ];

    krb5.enable = true;

    users = {
      mutableUsers = false;
      users = {
        user = {
          isNormalUser = true;
        };
      };
    };
  };

  testScript = builtins.replaceStrings
    [ "@@pam_ccreds@@" "@@pam_krb5@@" ]
    [ pkgs.pam_ccreds.outPath pkgs.pam_krb5.outPath ]
    (builtins.readFile ./test_chfn.py);
})