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.
commit6558f81bc9dd240804c16432767614a21d6d53e3
authorPeter Hoeg <peter@hoeg.com>
dateThu 21 Sep 2017, 10:00 (9 years ago)
parenta752659
nixos/modules/services/ttys/kmscon.nix+1
@@ -60,6 +60,7 @@ in {
6060 ConditionPathExists=/dev/tty0
6161
6262 [Service]
63+ ExecStart=
6364 ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" ${cfg.extraOptions} --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p
6465 UtmpIdentifier=%I
6566 TTYPath=/dev/%I