libvirt + prismlauncher

This commit is contained in:
janis 2025-11-06 12:32:03 +01:00
parent 87fbe0cc1b
commit f61859eedc
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8
5 changed files with 21 additions and 1 deletions

View file

@ -89,6 +89,8 @@ in {
file file
bitwarden-desktop bitwarden-desktop
bitwarden-cli bitwarden-cli
prismlauncher
virt-manager
gh gh

View file

@ -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";

View file

@ -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.";
};
}; };
} }

View file

@ -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";

View file

@ -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;