From dd059f31b0e5f3685960110c411157403f3fadf2 Mon Sep 17 00:00:00 2001 From: chaos Date: Thu, 30 Jan 2025 15:11:25 +0000 Subject: [PATCH] remove mail on restic-all --- hosts/hetzner-arm/profiles/restic.nix | 2 -- hosts/hetzner-arm/profiles/storage.nix | 0 2 files changed, 2 deletions(-) create mode 100644 hosts/hetzner-arm/profiles/storage.nix diff --git a/hosts/hetzner-arm/profiles/restic.nix b/hosts/hetzner-arm/profiles/restic.nix index 7f0ed95..f1fcd71 100644 --- a/hosts/hetzner-arm/profiles/restic.nix +++ b/hosts/hetzner-arm/profiles/restic.nix @@ -21,14 +21,12 @@ in { ${concatStringsSep "\n" (forEach (attrNames config.services.restic.backups) ( name: "restic-${name} $@" ))} - machinectl shell mail /usr/bin/env restic-mail $@ '') (pkgs.writeShellScriptBin "restic-backup-all" '' ${concatStringsSep "\n" (forEach (attrNames config.services.restic.backups) ( name: "systemctl start restic-backups-${name}.service" ))} - machinectl shell mail /usr/bin/env systemctl start restic-backups-mail.service '') ]; diff --git a/hosts/hetzner-arm/profiles/storage.nix b/hosts/hetzner-arm/profiles/storage.nix new file mode 100644 index 0000000..e69de29