From b87075ff2341df7561e3d8680e374e81fd836e94 Mon Sep 17 00:00:00 2001 From: Tobias Frischmann Date: Mon, 27 Jul 2026 09:21:07 +0200 Subject: [PATCH] minor cleanup --- README.md | 4 ++-- flake.nix | 2 +- module.nix | 14 +++----------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index dec3daf..9858838 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ A simple service that reminds you to drink water at regular intervals via notifi ... }; - outputs = { self, nixpkgs, sops-nix }: { + outputs = { self, nixpkgs }: { # change `yourhostname` to your actual hostname nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem { ... @@ -38,7 +38,7 @@ A simple service that reminds you to drink water at regular intervals via notifi services.hydration-notifier = { enable = true; - interval = 5; + interval = 1800 ; # 30 min duration = 10; }; } diff --git a/flake.nix b/flake.nix index 32f0a96..a1a82da 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,7 @@ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; - outputs = { self, nixpkgs, ... }: + outputs = { nixpkgs, ... }: let system = "x86_64-linux"; diff --git a/module.nix b/module.nix index 64d4713..e0720c1 100644 --- a/module.nix +++ b/module.nix @@ -26,23 +26,15 @@ systemd.user.services.hydration-notifier = { description = "Hydration Notifier Service"; - wantedBy = [ - "graphical-session.target" - ]; - - after = [ - "graphical-session.target" - ]; + wantedBy = [ "default.target" ]; + after = [ "default.target" ]; restartTriggers = [ package ]; serviceConfig = { - ExecStart = '' - ${package}/bin/hydration-notifier -i ${toString cfg.interval} -d ${toString cfg.duration} - ''; - + ExecStart = "${package}/bin/hydration-notifier -i ${toString cfg.interval} -d ${toString cfg.duration}"; Restart = "always"; RestartSec = 5; }; -- 2.51.2