diff --git a/nixos/hosts/varda/default.nix b/nixos/hosts/varda/default.nix index 3ba7e93..65680c6 100644 --- a/nixos/hosts/varda/default.nix +++ b/nixos/hosts/varda/default.nix @@ -31,5 +31,4 @@ nginx.enable = true; }; }; - } diff --git a/nixos/modules/nixos/security/acme/default.nix b/nixos/modules/nixos/security/acme/default.nix index c0a88b0..85e66be 100644 --- a/nixos/modules/nixos/security/acme/default.nix +++ b/nixos/modules/nixos/security/acme/default.nix @@ -30,7 +30,5 @@ in credentialsFile = config.sops.secrets."security/acme/env".path; }; }; - - }; } diff --git a/nixos/modules/nixos/system/zfs.nix b/nixos/modules/nixos/system/zfs.nix index 5cce269..4c52e1d 100644 --- a/nixos/modules/nixos/system/zfs.nix +++ b/nixos/modules/nixos/system/zfs.nix @@ -18,20 +18,23 @@ with lib; "zfs" ]; zfs = { - forceImportRoot = false; # if stuck on boot, modify grub options , force importing isnt secure + forceImportRoot = false; # if stuck on boot, modify grub options, force importing isnt secure extraPools = cfg.mountPoolsAtBoot; }; }; + services.zfs = { autoScrub.enable = true; # Defaults to weekly and is a bit too regular for my NAS autoScrub.interval = "weekly"; trim.enable = true; }; + # Pushover notifications environment.systemPackages = with pkgs; [ busybox ]; + services.zfs.zed.settings = { ZED_PUSHOVER_TOKEN = "$(${pkgs.busybox}/bin/cat ${config.sops.secrets.pushover-api-key.path})"; ZED_PUSHOVER_USER = "$(${pkgs.busybox}/bin/cat ${config.sops.secrets.pushover-user-key.path})";