Merge pull request #113804 from rnhmjoj/no-udev-settle-2
nixos/console: fix console setting reloading
This commit is contained in:
commit
47589ade46
@ -144,11 +144,16 @@ in
|
|||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd.services.systemd-vconsole-setup =
|
systemd.services.reload-systemd-vconsole-setup =
|
||||||
{
|
{ description = "Reset console on configuration changes";
|
||||||
before = optional config.services.xserver.enable "display-manager.service";
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "systemd-udev-settle.service" ];
|
|
||||||
restartTriggers = [ vconsoleConf consoleEnv ];
|
restartTriggers = [ vconsoleConf consoleEnv ];
|
||||||
|
reloadIfChanged = true;
|
||||||
|
serviceConfig =
|
||||||
|
{ RemainAfterExit = true;
|
||||||
|
ExecStart = "${pkgs.coreutils}/bin/true";
|
||||||
|
ExecReload = "/run/current-system/systemd/bin/systemctl restart systemd-vconsole-setup";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user