diff --git a/packages/sets/games.nix b/packages/sets/games.nix index 2857743..b40d5da 100644 --- a/packages/sets/games.nix +++ b/packages/sets/games.nix @@ -12,6 +12,7 @@ environment.systemPackages = with pkgs; [ prismlauncher protonup-qt + xivlauncher ]; } diff --git a/users/hu/packages/virt-manager-home.nix b/users/hu/packages/virt-manager-home.nix new file mode 100644 index 0000000..ab4c517 --- /dev/null +++ b/users/hu/packages/virt-manager-home.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + dconf.settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = ["qemu:///system"]; + uris = ["qemu:///system"]; + }; + }; +} diff --git a/users/hu/packages/virt-manager.nix b/users/hu/packages/virt-manager.nix new file mode 100644 index 0000000..45c26c0 --- /dev/null +++ b/users/hu/packages/virt-manager.nix @@ -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; +} + diff --git a/users/hu/user.nix b/users/hu/user.nix index 9d0375c..bad6f9e 100644 --- a/users/hu/user.nix +++ b/users/hu/user.nix @@ -8,6 +8,7 @@ ./persist.nix ./packages/nh.nix ./packages/zsh/zsh.nix + ./packages/virt-manager.nix ]; environment.variables = { @@ -17,7 +18,7 @@ users.users.hu = { isNormalUser = true; - extraGroups = [ "wheel" ]; + extraGroups = [ "wheel" "libvirtd" ]; shell = pkgs.zsh; hashedPasswordFile = "/nix/config/secrets/hu/pass"; }; @@ -41,6 +42,7 @@ ./packages/fastfetch.nix ./packages/nvim/neovim.nix ./packages/waybar.nix + ./packages/virt-manager-home.nix ]; }; };