1
0
Fork 0

Nightshutdown

This commit is contained in:
Malte Brandy 2022-01-20 02:49:52 +01:00
parent 87a7ec6ca4
commit 77c1b105f8
2 changed files with 6 additions and 6 deletions

View file

@ -71,7 +71,7 @@ let
./roles/mpd.nix ./roles/mpd.nix
./roles/pythia.nix ./roles/pythia.nix
./roles/research.nix ./roles/research.nix
./roles/sleep-nag.nix ./roles/night-shutdown.nix
./roles/tinkering.nix ./roles/tinkering.nix
./roles/wallpaper.nix ./roles/wallpaper.nix
]; ];

View file

@ -1,8 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
let let
sleep-nag = pkgs.writeHaskellScript night-shutdown = pkgs.writeHaskellScript
{ {
name = "sleep-nag"; name = "night-shutdown";
imports = [ imports = [
"Data.Time.LocalTime" "Data.Time.LocalTime"
"Data.Time.Format" "Data.Time.Format"
@ -30,9 +30,9 @@ let
''; '';
in in
{ {
systemd.user.services.sleep-nag = { systemd.user.services.night-shutdown = {
Unit.Description = "Sleep nag"; Unit.Description = "Night Shutdown";
Service.ExecStart = "${sleep-nag}/bin/sleep-nag"; Service.ExecStart = "${night-shutdown}/bin/night-shutdown";
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [ "graphical-session.target" ];
}; };
} }