diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
| commit | c1d9af57156f3c95590d9a12c394ee064df9696e (patch) | |
| tree | 7e515761590c510c30329ef8548c7d84a8e95aaa /sys/srv/kvm.nix | |
| parent | 791bc419b6dac7c70951981ef6b34cdf85828470 (diff) | |
added disko config for laptop, added storage and memory modules
Diffstat (limited to 'sys/srv/kvm.nix')
| -rw-r--r-- | sys/srv/kvm.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/srv/kvm.nix b/sys/srv/kvm.nix index 08c8578..2cf8c26 100644 --- a/sys/srv/kvm.nix +++ b/sys/srv/kvm.nix @@ -1,10 +1,9 @@ { config, lib, pkgs, ... }: let - cfg = config.szpont.sys.srv.kvm; + cfg = config.sys.srv.kvm; in { - options.szpont.sys.srv.kvm.enable = lib.mkEnableOption "KVM/QEMU virtualization with Virt-Manager"; - + options.sys.srv.kvm.enable = lib.mkEnableOption "KVM/QEMU virtualization with Virt-Manager"; config = lib.mkIf cfg.enable { virtualisation.libvirtd = { enable = true; @@ -14,8 +13,6 @@ in programs.virt-manager.enable = true; - users.users.adam.extraGroups = [ "libvirtd" ]; - - boot.initrd.kernelModules = [ "kvm-amd" ]; + boot.initrd.kernelModules = lib.optional (config.sys.core.drivers.amd.enable or false) "kvm-amd"; }; } |
