From 9c71c51129ef5ae7be90fb0723423245d805d994 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 28 Mar 2022 18:04:24 +0200 Subject: [PATCH] ma gum.r: move smartd monitor to hw-specific config --- 1systems/gum/config.nix | 2 -- 1systems/gum/{hardware-config.nix => hetzner/default.nix} | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) rename 1systems/gum/{hardware-config.nix => hetzner/default.nix} (96%) diff --git a/1systems/gum/config.nix b/1systems/gum/config.nix index 5401060..0cdfcda 100644 --- a/1systems/gum/config.nix +++ b/1systems/gum/config.nix @@ -32,8 +32,6 @@ in { # - - { services.smartd.devices = builtins.map (x: { device = x; }) allDisks; } # Security diff --git a/1systems/gum/hardware-config.nix b/1systems/gum/hetzner/default.nix similarity index 96% rename from 1systems/gum/hardware-config.nix rename to 1systems/gum/hetzner/default.nix index 1881329..7d44587 100644 --- a/1systems/gum/hardware-config.nix +++ b/1systems/gum/hetzner/default.nix @@ -18,6 +18,9 @@ let ext-if = "et0"; # gets renamed on the fly in { imports = [ + + { services.smartd.devices = builtins.map (x: { device = x; }) allDisks; } + ]; makefu.server.primary-itf = ext-if; services.udev.extraRules = ''