libvirt + prismlauncher
This commit is contained in:
parent
87fbe0cc1b
commit
f61859eedc
|
|
@ -89,6 +89,8 @@ in {
|
|||
file
|
||||
bitwarden-desktop
|
||||
bitwarden-cli
|
||||
prismlauncher
|
||||
virt-manager
|
||||
|
||||
gh
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
darkMode = true;
|
||||
enableHypridle = true;
|
||||
has_battery = false;
|
||||
enableVirtualisation = true;
|
||||
|
||||
networking.hostName = "desktop";
|
||||
|
||||
|
|
|
|||
|
|
@ -53,5 +53,11 @@
|
|||
default = {};
|
||||
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 = {
|
||||
nameservers = [ "9.9.9.9#dns.quad9.net" "1.1.1.1#one.one.one.one" ];
|
||||
# networkmanager.wifi.backend = "iwd";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ in {
|
|||
home = "/home/${user.username}";
|
||||
createHome = true;
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "input" "nordvpn" "networkmanager" ];
|
||||
extraGroups = [ "wheel" "input" "nordvpn" "networkmanager" "libvirtd" ];
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue