From 6558f81bc9dd240804c16432767614a21d6d53e3 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Thu, 21 Sep 2017 10:00:00 +0800 Subject: 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. --- nixos/modules/services/ttys/kmscon.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules/services/ttys') 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 -- cgit 1.4.1