git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #113237 from jflanglois/fix-kmscon

nixos/services/kmscon: fix systemd configuration

commit1d55adbce8af68fee04f42b562f5376be5a6026c authorGuillaume Girol <symphorien@users.noreply.github.com> dateSun 21 Feb 2021, 13:43 (6 years ago) parent037936bf3828c5
1 file changed+2−5
nixos/modules/services/ttys/kmscon.nix+2−5
nixos/modules/services/ttys/kmscon.nix+2−5
@@ -82,11 +82,8 @@ in {
8282 X-RestartIfChanged=false
8383 '';
8484
85− systemd.units."autovt@.service".unit = pkgs.runCommand "unit" { preferLocalBuild = true; }
86− ''
87− mkdir -p $out
88− ln -s ${config.systemd.units."kmsconvt@.service".unit}/kmsconvt@.service $out/autovt@.service
89− '';
85+ systemd.suppressedSystemUnits = [ "autovt@.service" ];
86+ systemd.units."kmsconvt@.service".aliases = [ "autovt@.service" ];
9087
9188 systemd.services.systemd-vconsole-setup.enable = false;
9289