Set merge + mkIf always surprises me
This commit is contained in:
parent
f2f3f1479e
commit
264db4e309
@ -106,10 +106,10 @@ in
|
|||||||
chfn.source = "${pkgs.shadow.out}/bin/chfn";
|
chfn.source = "${pkgs.shadow.out}/bin/chfn";
|
||||||
newuidmap.source = "${pkgs.shadow.out}/bin/newuidmap";
|
newuidmap.source = "${pkgs.shadow.out}/bin/newuidmap";
|
||||||
newgidmap.source = "${pkgs.shadow.out}/bin/newgidmap";
|
newgidmap.source = "${pkgs.shadow.out}/bin/newgidmap";
|
||||||
} // (lib.mkIf config.users.mutableUsers {
|
} // (if config.users.mutableUsers then {
|
||||||
passwd.source = "${pkgs.shadow.out}/bin/passwd";
|
passwd.source = "${pkgs.shadow.out}/bin/passwd";
|
||||||
sg.source = "${pkgs.shadow.out}/bin/sg";
|
sg.source = "${pkgs.shadow.out}/bin/sg";
|
||||||
newgrp.source = "${pkgs.shadow.out}/bin/newgrp";
|
newgrp.source = "${pkgs.shadow.out}/bin/newgrp";
|
||||||
});
|
} else {});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -478,10 +478,10 @@ in
|
|||||||
owner = "root";
|
owner = "root";
|
||||||
setuid = true;
|
setuid = true;
|
||||||
};
|
};
|
||||||
} // (mkIf config.security.pam.enableEcryptfs {
|
} // (if config.security.pam.enableEcryptfs then {
|
||||||
"mount.ecryptfs_private".source = "${pkgs.ecryptfs.out}/bin/mount.ecryptfs_private";
|
"mount.ecryptfs_private".source = "${pkgs.ecryptfs.out}/bin/mount.ecryptfs_private";
|
||||||
"umount.ecryptfs_private".source = "${pkgs.ecryptfs.out}/bin/umount.ecryptfs_private";
|
"umount.ecryptfs_private".source = "${pkgs.ecryptfs.out}/bin/umount.ecryptfs_private";
|
||||||
});
|
} else {});
|
||||||
|
|
||||||
environment.etc =
|
environment.etc =
|
||||||
mapAttrsToList (n: v: makePAMService v) config.security.pam.services;
|
mapAttrsToList (n: v: makePAMService v) config.security.pam.services;
|
||||||
|
@ -152,6 +152,9 @@ in
|
|||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
security.wrappers.fusermount.source = "${pkgs.fuse}/bin/fusermount";
|
||||||
|
|
||||||
# Make sure our wrapperDir exports to the PATH env variable when
|
# Make sure our wrapperDir exports to the PATH env variable when
|
||||||
# initializing the shell
|
# initializing the shell
|
||||||
environment.extraInit = ''
|
environment.extraInit = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user