From 5f94345a9124b50d04a7e3535b333fed8520d70c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 22 Jan 2026 16:05:36 +0900 Subject: [PATCH] hosts/various: enable qemu guest agent, disable smartd for vms by default --- base/services/smartd.nix | 4 +++- hosts/bicep/configuration.nix | 4 ---- hosts/gluttony/configuration.nix | 2 ++ hosts/ildkule/configuration.nix | 3 +-- hosts/kommode/configuration.nix | 2 ++ hosts/shark/configuration.nix | 2 ++ hosts/temmie/configuration.nix | 2 ++ hosts/wenche/configuration.nix | 2 ++ 8 files changed, 14 insertions(+), 7 deletions(-) diff --git a/base/services/smartd.nix b/base/services/smartd.nix index 75eaa0e..ff708a9 100644 --- a/base/services/smartd.nix +++ b/base/services/smartd.nix @@ -1,7 +1,9 @@ { config, pkgs, lib, ... }: { services.smartd = { - enable = lib.mkDefault true; + # NOTE: qemu guests tend not to have SMART-reporting disks. Please override for the + # hosts with disk passthrough. + enable = lib.mkDefault (!config.services.qemuGuest.enable); notifications = { mail = { enable = true; diff --git a/hosts/bicep/configuration.nix b/hosts/bicep/configuration.nix index 2a6223d..bef51ee 100644 --- a/hosts/bicep/configuration.nix +++ b/hosts/bicep/configuration.nix @@ -31,10 +31,6 @@ anyInterface = true; }; - # There are no smart devices - services.smartd.enable = false; - - # we are a vm now services.qemuGuest.enable = true; # Don't change (even during upgrades) unless you know what you are doing. diff --git a/hosts/gluttony/configuration.nix b/hosts/gluttony/configuration.nix index 9786976..17288ba 100644 --- a/hosts/gluttony/configuration.nix +++ b/hosts/gluttony/configuration.nix @@ -45,6 +45,8 @@ }; }; + services.qemuGuest.enable = true; + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "25.11"; diff --git a/hosts/ildkule/configuration.nix b/hosts/ildkule/configuration.nix index 0db7672..e684285 100644 --- a/hosts/ildkule/configuration.nix +++ b/hosts/ildkule/configuration.nix @@ -43,8 +43,7 @@ }; }; - # No devices with SMART - services.smartd.enable = false; + services.qemuGuest.enable = true; # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion diff --git a/hosts/kommode/configuration.nix b/hosts/kommode/configuration.nix index 7ce665e..9a4f63f 100644 --- a/hosts/kommode/configuration.nix +++ b/hosts/kommode/configuration.nix @@ -21,6 +21,8 @@ services.btrfs.autoScrub.enable = true; + services.qemuGuest.enable = true; + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "24.11"; diff --git a/hosts/shark/configuration.nix b/hosts/shark/configuration.nix index e951179..efcb0f8 100644 --- a/hosts/shark/configuration.nix +++ b/hosts/shark/configuration.nix @@ -16,6 +16,8 @@ address = with values.hosts.shark; [ (ipv4 + "/25") (ipv6 + "/64") ]; }; + services.qemuGuest.enable = true; + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "23.05"; diff --git a/hosts/temmie/configuration.nix b/hosts/temmie/configuration.nix index f347879..9ae5f85 100644 --- a/hosts/temmie/configuration.nix +++ b/hosts/temmie/configuration.nix @@ -18,6 +18,8 @@ address = with values.hosts.temmie; [ (ipv4 + "/25") (ipv6 + "/64") ]; }; + services.qemuGuest.enable = true; + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "25.11"; diff --git a/hosts/wenche/configuration.nix b/hosts/wenche/configuration.nix index 614b187..7309143 100644 --- a/hosts/wenche/configuration.nix +++ b/hosts/wenche/configuration.nix @@ -35,6 +35,8 @@ package = config.boot.kernelPackages.nvidiaPackages.production; }; + services.qemuGuest.enable = true; + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "24.11";