about summary refs log tree commit diff
path: root/nixos/modules/services/ttys
diff options
context:
space:
mode:
authorJulien Langlois <yourstruly@julienlanglois.me>2021-02-15 15:52:39 -0500
committerJulien Langlois <yourstruly@julienlanglois.me>2021-02-15 16:58:54 -0500
commitf3828c53c9b11c11d03b7ae1c11dab2a41cc3302 (patch)
treea27744ba4c9b05c9c617ad2359a6331ee0e06f93 /nixos/modules/services/ttys
parent69d5df6303374e52f56eb57fa0ed38793ed03718 (diff)
nixos/services/kmscon: fix systemd configuration
This fixes https://github.com/NixOS/nixpkgs/issues/112616
Diffstat (limited to 'nixos/modules/services/ttys')
-rw-r--r--nixos/modules/services/ttys/kmscon.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/modules/services/ttys/kmscon.nix b/nixos/modules/services/ttys/kmscon.nix
index dc37f9bee4b36..4fe720bf044bc 100644
--- a/nixos/modules/services/ttys/kmscon.nix
+++ b/nixos/modules/services/ttys/kmscon.nix
@@ -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;