summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-09-21 10:00:00 +0800
committerPeter Hoeg <peter@hoeg.com>2017-09-21 10:02:03 +0800
commit6558f81bc9dd240804c16432767614a21d6d53e3 (patch)
tree2fdc37784a1f66c61bd84de0d17c40835369a604
parenta75265924f5f3ee73fdd30c9713b2f8177b7fb98 (diff)
downloadnixpkgs-6558f81bc9dd240804c16432767614a21d6d53e3.tar
nixpkgs-6558f81bc9dd240804c16432767614a21d6d53e3.tar.gz
nixpkgs-6558f81bc9dd240804c16432767614a21d6d53e3.tar.bz2
nixpkgs-6558f81bc9dd240804c16432767614a21d6d53e3.tar.lz
nixpkgs-6558f81bc9dd240804c16432767614a21d6d53e3.tar.xz
nixpkgs-6558f81bc9dd240804c16432767614a21d6d53e3.tar.zst
nixpkgs-6558f81bc9dd240804c16432767614a21d6d53e3.zip
kmscon: reset ExecStart to allow override
The getty@.service unit already has an ExecStart so we cannot simply set a new
one in order to override it or we will get this error:

systemd[1]: getty@tty1.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.

Instead "reset" ExecStart by setting it to empty which is the systemd way of
doing it.
-rw-r--r--nixos/modules/services/ttys/kmscon.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/ttys/kmscon.nix b/nixos/modules/services/ttys/kmscon.nix
index 8bad42927e3..88e488425bc 100644
--- a/nixos/modules/services/ttys/kmscon.nix
+++ b/nixos/modules/services/ttys/kmscon.nix
@@ -60,6 +60,7 @@ in {
       ConditionPathExists=/dev/tty0
 
       [Service]
+      ExecStart=
       ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" ${cfg.extraOptions} --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p
       UtmpIdentifier=%I
       TTYPath=/dev/%I