summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSvein Ove Aas <sveina@gmail.com>2016-06-06 11:51:51 +0100
committerSvein Ove Aas <sveina@gmail.com>2016-06-06 11:51:51 +0100
commit93c160fabc0e3b5fb3d997c840ef86a68f4bce00 (patch)
tree721edb56a45a4e68aaa4a3f315c4149150005f7d /nixos
parentfbde3a745259edf20dc8e275eee954875a2d50ab (diff)
downloadnixpkgs-93c160fabc0e3b5fb3d997c840ef86a68f4bce00.tar
nixpkgs-93c160fabc0e3b5fb3d997c840ef86a68f4bce00.tar.gz
nixpkgs-93c160fabc0e3b5fb3d997c840ef86a68f4bce00.tar.bz2
nixpkgs-93c160fabc0e3b5fb3d997c840ef86a68f4bce00.tar.lz
nixpkgs-93c160fabc0e3b5fb3d997c840ef86a68f4bce00.tar.xz
nixpkgs-93c160fabc0e3b5fb3d997c840ef86a68f4bce00.tar.zst
nixpkgs-93c160fabc0e3b5fb3d997c840ef86a68f4bce00.zip
systemd: Set KillUserProcesses=no in logind.conf
Full discussion at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825394

NixOS is even more of a server OS than Debian, and I can think of no
reason to make users jump through this sort of hoop.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/systemd.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index 076bbca850d..3d8f29c80f9 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -669,6 +669,7 @@ in
 
       "systemd/logind.conf".text = ''
         [Login]
+        KillUserProcesses=no
         ${config.services.logind.extraConfig}
       '';