1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

autovt@.service really has to be a symlink

This commit is contained in:
Eelco Dolstra 2014-03-13 00:18:17 +01:00
parent 576eaa16b8
commit e1984f029d
2 changed files with 6 additions and 2 deletions

View file

@ -63,7 +63,11 @@ in {
X-RestartIfChanged=false
'';
systemd.services."autovt@".baseUnit = "${config.systemd.units."kmsconvt@.service".unit}/kmsconvt@.service";
systemd.units."autovt@.service".unit = pkgs.runCommand "unit" { }
''
mkdir -p $out
ln -s ${config.systemd.units."kmsconvt@.service".unit}/kmsconvt@.service $out/autovt@.service
'';
systemd.services.systemd-vconsole-setup.restartIfChanged = false;

View file

@ -424,7 +424,7 @@ in
};
};
config = {
unit = makeUnit name config;
unit = mkDefault (makeUnit name config);
};
};
};