Add/fix systemd unit descriptions

This commit is contained in:
Eelco Dolstra 2013-01-10 13:59:41 +01:00
parent 3bbbd62cbc
commit 5685ee5446
6 changed files with 10 additions and 6 deletions

View File

@ -236,7 +236,9 @@ in
]; ];
jobs.firewall = jobs.firewall =
{ startOn = "started network-interfaces"; { description = "Firewall";
startOn = "started network-interfaces";
path = [ pkgs.iptables ]; path = [ pkgs.iptables ];

View File

@ -66,7 +66,7 @@ in
}; };
jobs.ntpd = jobs.ntpd =
{ description = "NTP daemon"; { description = "NTP Daemon";
wantedBy = [ "ip-up.target" ]; wantedBy = [ "ip-up.target" ];
partOf = [ "ip-up.target" ]; partOf = [ "ip-up.target" ];

View File

@ -118,7 +118,7 @@ in
boot.blacklistedKernelModules = [ "usblp" ]; boot.blacklistedKernelModules = [ "usblp" ];
jobs.cupsd = jobs.cupsd =
{ description = "CUPS printing daemon"; { description = "CUPS Printing Daemon";
startOn = "started network-interfaces"; startOn = "started network-interfaces";
stopOn = "stopping network-interfaces"; stopOn = "stopping network-interfaces";

View File

@ -64,7 +64,7 @@ in
}; };
jobs.atd = jobs.atd =
{ description = "at daemon (atd)"; { description = "Job Execution Daemon (atd)";
startOn = "stopped udevtrigger"; startOn = "stopped udevtrigger";

View File

@ -86,7 +86,7 @@ in
environment.systemPackages = [ cronNixosPkg ]; environment.systemPackages = [ cronNixosPkg ];
jobs.cron = jobs.cron =
{ description = "Cron daemon"; { description = "Cron Daemon";
startOn = "startup"; startOn = "startup";

View File

@ -389,7 +389,9 @@ in
boot.systemd.defaultUnit = mkIf cfg.autorun "graphical.target"; boot.systemd.defaultUnit = mkIf cfg.autorun "graphical.target";
boot.systemd.services."display-manager" = boot.systemd.services."display-manager" =
{ after = [ "systemd-udev-settle.service" "local-fs.target" ]; { description = "X11 Server";
after = [ "systemd-udev-settle.service" "local-fs.target" ];
restartIfChanged = false; restartIfChanged = false;