1
Fork 0
This commit is contained in:
caem 2024-06-27 20:59:55 +02:00
parent 72810100dc
commit 5b4a53f099
Signed by: caem
GPG key ID: 69A830D03203405F
4 changed files with 35 additions and 1 deletions

View file

@ -12,6 +12,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
prismlauncher prismlauncher
protonup-qt protonup-qt
xivlauncher
]; ];
} }

View file

@ -0,0 +1,10 @@
{ ... }:
{
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
}

View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd];
};
};
};
programs.virt-manager.enable = true;
}

View file

@ -8,6 +8,7 @@
./persist.nix ./persist.nix
./packages/nh.nix ./packages/nh.nix
./packages/zsh/zsh.nix ./packages/zsh/zsh.nix
./packages/virt-manager.nix
]; ];
environment.variables = { environment.variables = {
@ -17,7 +18,7 @@
users.users.hu = { users.users.hu = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" "libvirtd" ];
shell = pkgs.zsh; shell = pkgs.zsh;
hashedPasswordFile = "/nix/config/secrets/hu/pass"; hashedPasswordFile = "/nix/config/secrets/hu/pass";
}; };
@ -41,6 +42,7 @@
./packages/fastfetch.nix ./packages/fastfetch.nix
./packages/nvim/neovim.nix ./packages/nvim/neovim.nix
./packages/waybar.nix ./packages/waybar.nix
./packages/virt-manager-home.nix
]; ];
}; };
}; };