diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-06 17:35:21 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-06 17:35:21 +0200 |
commit | 0e4a3eaac8ec0af33963e97a1b6ba1a941649762 (patch) | |
tree | c38ad2ed986afb8c79eca90e9cc572b9a29109f2 | |
parent | 3d0adb1b8c2173b781c91aafa7aa2abdfe1b36c6 (diff) | |
download | nixos-0e4a3eaac8ec0af33963e97a1b6ba1a941649762.tar nixos-0e4a3eaac8ec0af33963e97a1b6ba1a941649762.tar.gz nixos-0e4a3eaac8ec0af33963e97a1b6ba1a941649762.tar.bz2 nixos-0e4a3eaac8ec0af33963e97a1b6ba1a941649762.tar.xz nixos-0e4a3eaac8ec0af33963e97a1b6ba1a941649762.zip |
kill uucp before sleep
-rw-r--r-- | hel.nix | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -358,6 +358,17 @@ | |||
358 | wants = [ "slimlock@gkleen.service" ]; | 358 | wants = [ "slimlock@gkleen.service" ]; |
359 | }; | 359 | }; |
360 | 360 | ||
361 | systemd.services."kill-user@" = { | ||
362 | serviceConfig = { | ||
363 | Type = "oneshot"; | ||
364 | ExecStart = "${pkgs.systemd}/bin/loginctl kill-user %I"; | ||
365 | }; | ||
366 | }; | ||
367 | systemd.targets."sleep" = { | ||
368 | after = [ "kill-user@uucp.service" ]; | ||
369 | wants = [ "kill-user@uucp.service" ]; | ||
370 | }; | ||
371 | |||
361 | virtualisation.virtualbox.host = { | 372 | virtualisation.virtualbox.host = { |
362 | enable = true; | 373 | enable = true; |
363 | }; | 374 | }; |