From f3828c53c9b11c11d03b7ae1c11dab2a41cc3302 Mon Sep 17 00:00:00 2001 From: Julien Langlois Date: Mon, 15 Feb 2021 15:52:39 -0500 Subject: [PATCH] nixos/services/kmscon: fix systemd configuration This fixes https://github.com/NixOS/nixpkgs/issues/112616 --- nixos/modules/services/ttys/kmscon.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/ttys/kmscon.nix b/nixos/modules/services/ttys/kmscon.nix index dc37f9bee4b3..4fe720bf044b 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;