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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user