From b0ef041feef04fbd7e4beffd242fa25fb708ef8c Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Fri, 4 Aug 2023 19:42:54 +0200 Subject: nixos: add option to monitor systemd services --- modules/nixos/personal/nix.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'modules/nixos/personal/nix.nix') diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix index a4948f4..8744e80 100644 --- a/modules/nixos/personal/nix.nix +++ b/modules/nixos/personal/nix.nix @@ -45,13 +45,14 @@ in { wantedBy = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ]; }; }; - programs.git = lib.mkIf (cfg.flake != null - && lib.hasPrefix "git+file" cfg.flake) { - enable = true; - config.user = { - name = "Root user of ${config.networking.hostName}"; - email = "root@${config.networking.hostName}"; + personal.monitoring.services = [ "nixos-upgrade" "nix-gc" ]; + programs.git = + lib.mkIf (cfg.flake != null && lib.hasPrefix "git+file" cfg.flake) { + enable = true; + config.user = { + name = "Root user of ${config.networking.hostName}"; + email = "root@${config.networking.hostName}"; + }; }; - }; }; } -- cgit v1.2.3