libvirt + prismlauncher
This commit is contained in:
parent
87fbe0cc1b
commit
f61859eedc
|
|
@ -89,6 +89,8 @@ in {
|
||||||
file
|
file
|
||||||
bitwarden-desktop
|
bitwarden-desktop
|
||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
|
prismlauncher
|
||||||
|
virt-manager
|
||||||
|
|
||||||
gh
|
gh
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
darkMode = true;
|
darkMode = true;
|
||||||
enableHypridle = true;
|
enableHypridle = true;
|
||||||
has_battery = false;
|
has_battery = false;
|
||||||
|
enableVirtualisation = true;
|
||||||
|
|
||||||
networking.hostName = "desktop";
|
networking.hostName = "desktop";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,5 +53,11 @@
|
||||||
default = {};
|
default = {};
|
||||||
description = "Additional config for TLP";
|
description = "Additional config for TLP";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableVirtualisation = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable virtualization features.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation = lib.mkIf config.enableVirtualisation {
|
||||||
|
libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemu = {
|
||||||
|
package = pkgs.qemu_kvm;
|
||||||
|
runAsRoot = true;
|
||||||
|
swtpm.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = [ "9.9.9.9#dns.quad9.net" "1.1.1.1#one.one.one.one" ];
|
nameservers = [ "9.9.9.9#dns.quad9.net" "1.1.1.1#one.one.one.one" ];
|
||||||
# networkmanager.wifi.backend = "iwd";
|
# networkmanager.wifi.backend = "iwd";
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ in {
|
||||||
home = "/home/${user.username}";
|
home = "/home/${user.username}";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "input" "nordvpn" "networkmanager" ];
|
extraGroups = [ "wheel" "input" "nordvpn" "networkmanager" "libvirtd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue