Nightshutdown
This commit is contained in:
parent
87a7ec6ca4
commit
77c1b105f8
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue