nixos/services/kmscon: fix systemd configuration

This fixes https://github.com/NixOS/nixpkgs/issues/112616
This commit is contained in:
Julien Langlois 2021-02-15 15:52:39 -05:00
parent 69d5df6303
commit f3828c53c9
No known key found for this signature in database
GPG key ID: BB220B0A40F7F862

View file

@ -82,11 +82,8 @@ in {
X-RestartIfChanged=false
'';
systemd.units."autovt@.service".unit = pkgs.runCommand "unit" { preferLocalBuild = true; }
''
mkdir -p $out
ln -s ${config.systemd.units."kmsconvt@.service".unit}/kmsconvt@.service $out/autovt@.service
'';
systemd.suppressedSystemUnits = [ "autovt@.service" ];
systemd.units."kmsconvt@.service".aliases = [ "autovt@.service" ];
systemd.services.systemd-vconsole-setup.enable = false;