holy shit im stupid, a lot of changes.

also added the configuration bc idk how to add only certain files but
whatever
This commit is contained in:
2026-07-05 23:42:52 -05:00
parent 4f9269315b
commit 4e925f8a89
10 changed files with 40 additions and 50 deletions
+5 -15
View File
@@ -19,9 +19,8 @@ in
podman = {
enable = lib.mkEnableOption "Podman support";
packages = lib.mkEnableOption "Install Relevant Podman packages" {
enable = true;
default = false;
packages = {
enable = lib.mkEnableOption "relevant Podman packages";
};
};
@@ -29,20 +28,11 @@ in
qemu = {
enable = lib.mkEnableOption "QEMU support";
containers = lib.mkEnableOption "Enable container support for QEMU" {
enable = true;
default = false;
};
containers = lib.mkEnableOption "container support for QEMU";
spiceUSBRedirection = lib.mkEnableOption "Enable spice USB redirection support for QEMU" {
enable = true;
default = false;
};
spiceUSBRedirection = lib.mkEnableOption "spice USB redirection support for QEMU";
virtManager = lib.mkEnableOption "Enable virt-manager support for QEMU" {
enable = true;
default = false;
};
virtManager = lib.mkEnableOption "virt-manager support for QEMU";
bootModules = lib.mkOption {
type = lib.types.listOf lib.types.str;
+2 -2
View File
@@ -11,7 +11,7 @@ in
config = lib.mkMerge [
(lib.mkIf cfg.qemu.enable {
virtualisation = {
containers.enable = true;
containers.enable = cfg.qemu.containers;
libvirtd = {
enable = true;
qemu = {
@@ -34,7 +34,7 @@ in
programs.virt-manager.enable = true;
})
(lib.mkIf cfg.qemu.bootModules {
(lib.mkIf cfg.qemu.enable {
boot.kernelModules = cfg.qemu.bootModules;
})
];