diff options
| -rw-r--r-- | hosts/kyren-laptop/configuration.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/hosts/kyren-laptop/configuration.nix b/hosts/kyren-laptop/configuration.nix index 82b2248..2e86d95 100644 --- a/hosts/kyren-laptop/configuration.nix +++ b/hosts/kyren-laptop/configuration.nix @@ -177,10 +177,21 @@ pkgs.keychain pkgs.openssh ]; - serviceConfig = { - Type = "oneshot"; - User = "kyren"; - }; + serviceConfig = { Type = "oneshot"; User = "kyren"; }; + }; + + systemd.timers."k-sleep-tracker" = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnBootSec = "1m"; + OnUnitActiveSec = "1m"; + Unit = "k-sleep-tracker.service"; + }; + }; + + systemd.services."k-sleep-tracker" = { + script = "$HOME/projects/k/bin/k tracker sleep"; + serviceConfig = { Type = "oneshot"; User = "kyren"; }; }; # Enable KVM/QEMU virtualization |
