1let
2 name = "pam";
3in
4{ pkgs, ... }:
5{
6 name = "pam-file-contents";
7
8 nodes.machine =
9 { ... }:
10 {
11 imports = [ ../../modules/profiles/minimal.nix ];
12
13 security.krb5.enable = true;
14
15 users = {
16 mutableUsers = false;
17 users = {
18 user = {
19 isNormalUser = true;
20 };
21 };
22 };
23 };
24
25 testScript =
26 builtins.replaceStrings
27 [ "@@pam@@" "@@pam_ccreds@@" "@@pam_krb5@@" ]
28 [ pkgs.pam.outPath pkgs.pam_ccreds.outPath pkgs.pam_krb5.outPath ]
29 (builtins.readFile ./test_chfn.py);
30}