diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-04 19:42:54 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-05 14:05:24 +0200 |
| commit | b0ef041feef04fbd7e4beffd242fa25fb708ef8c (patch) | |
| tree | 44dac43526ccdafe00297e0a54e8d150fd94e08b /modules/nixos/personal/nix.nix | |
| parent | 1b375ad836fea0199a580ce91cafebd11586c788 (diff) | |
nixos: add option to monitor systemd services
Diffstat (limited to 'modules/nixos/personal/nix.nix')
| -rw-r--r-- | modules/nixos/personal/nix.nix | 15 |
1 files changed, 8 insertions, 7 deletions
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}"; + }; }; - }; }; } |
