From e11b4e9d6117b8ad4f58892d54b3fc37d77b31ed Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 21 Jan 2025 15:35:23 +0100 Subject: [PATCH] feat(virtualisation): update libvirtd enablement logic - Disable libvirtd explicitly in m4nix configuration. - Use `lib.mkDefault` for libvirtd enablement in base services to allow overrides. --- modules/nixos/services/base/default.nix | 2 +- systems/aarch64-linux/m4nix/default.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/base/default.nix b/modules/nixos/services/base/default.nix index 4630eb3..ae08994 100644 --- a/modules/nixos/services/base/default.nix +++ b/modules/nixos/services/base/default.nix @@ -186,7 +186,7 @@ in }; }; - virtualisation.libvirtd.enable = true; + virtualisation.libvirtd.enable = lib.mkDefault true; boot.tmp.useTmpfs = true; systemd.services.nix-daemon.environment.TMPDIR = "/var/tmp"; diff --git a/systems/aarch64-linux/m4nix/default.nix b/systems/aarch64-linux/m4nix/default.nix index 7ed09b1..380fafc 100644 --- a/systems/aarch64-linux/m4nix/default.nix +++ b/systems/aarch64-linux/m4nix/default.nix @@ -63,6 +63,7 @@ with lib.metacfg; virtualisation = { docker.enable = true; podman.dockerCompat = false; + libvirtd.enable = false; }; system.autoUpgrade = {