From c8cd6e5c9439b8cc44f0192564bd0d62da3f0689 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 26 Jul 2024 15:24:18 -0500 Subject: [PATCH] added server name to message with disabled backups --- nixos/modules/nixos/services/restic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/nixos/services/restic/default.nix b/nixos/modules/nixos/services/restic/default.nix index 2dd01a6..c1795d3 100644 --- a/nixos/modules/nixos/services/restic/default.nix +++ b/nixos/modules/nixos/services/restic/default.nix @@ -34,8 +34,8 @@ in # Warn if backups are disable and machine isnt a dev box warnings = [ - (mkIf (!cfg.local.enable && config.mySystem.purpose != "Development") "WARNING: Local backups are disabled!") - (mkIf (!cfg.remote.enable && config.mySystem.purpose != "Development") "WARNING: Remote backups are disabled!") + (mkIf (!cfg.local.enable && config.mySystem.purpose != "Development") "WARNING: Local backups are disabled for ${config.system.name}!") + (mkIf (!cfg.remote.enable && config.mySystem.purpose != "Development") "WARNING: Remote backups are disabled for ${config.system.name}!") ]; sops.secrets = mkIf (cfg.local.enable || cfg.remote.enable) {