Skip to content

Commit 469cba4

Browse files
committed
fix: set loginuid, disable pam mounts
analogous to NixOS/nixpkgs#428459
1 parent 0fd6700 commit 469cba4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flake.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@
139139
security.polkit.enable = true;
140140

141141
# https://github.com/NixOS/nixpkgs/pull/419588
142-
security.pam.services.systemd-run0 = { };
142+
security.pam.services.systemd-run0 = {
143+
setLoginUid = true;
144+
pamMount = false;
145+
};
143146
})
144147
(lib.mkIf config.security.polkit.persistentAuthentication {
145148
security.polkit.extraConfig = ''

0 commit comments

Comments
 (0)