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/pythia.nix
./roles/research.nix
./roles/sleep-nag.nix
./roles/night-shutdown.nix
./roles/tinkering.nix
./roles/wallpaper.nix
];

View file

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