From 5bf2a29bce483a42339b9b64cd93be6bbc4c9227 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 17 Aug 2024 13:28:50 +0100 Subject: [PATCH 1/4] Setup spice --- system/shared.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/system/shared.nix b/system/shared.nix index cd848bd..70a229f 100644 --- a/system/shared.nix +++ b/system/shared.nix @@ -144,6 +144,11 @@ docker gnome.gnome-keyring libuuid + spice + spice-gtk + spice-protocol + win-virtio + win-spice ]; sessionVariables = { @@ -153,7 +158,14 @@ virtualisation = { docker.enable = true; - libvirtd.enable = true; + libvirtd = { + enable = true; + qemu = { + swtpm.enable = true; + ovmf.enable = true; + ovmf.packages = [ pkgs.OVMFFull.fd ]; + }; + }; }; xdg.portal = { From 8aec6bb80025afa2d232a895313c79275eb10db3 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 17 Aug 2024 13:39:00 +0100 Subject: [PATCH 2/4] Install virtualbox --- config/home.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/config/home.nix b/config/home.nix index 822be9b..71d19bd 100644 --- a/config/home.nix +++ b/config/home.nix @@ -93,6 +93,7 @@ in { unzip vim vimPlugins.vim-plug + virtualbox vscode wget xclip From 2c285995d0d219cc3d53e16fcf3853938603d197 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 17 Aug 2024 13:47:54 +0100 Subject: [PATCH 3/4] Add virtualbox config --- system/shared.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/system/shared.nix b/system/shared.nix index 70a229f..ec60bb1 100644 --- a/system/shared.nix +++ b/system/shared.nix @@ -166,6 +166,7 @@ ovmf.packages = [ pkgs.OVMFFull.fd ]; }; }; + virtualbox.host.enable = true; }; xdg.portal = { From efd5c51fd39a6ea759704cefc27fb2e096c453ca Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 17 Aug 2024 13:52:34 +0100 Subject: [PATCH 4/4] Add to user --- config/home.nix | 1 - system/shared.nix | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/home.nix b/config/home.nix index 71d19bd..822be9b 100644 --- a/config/home.nix +++ b/config/home.nix @@ -93,7 +93,6 @@ in { unzip vim vimPlugins.vim-plug - virtualbox vscode wget xclip diff --git a/system/shared.nix b/system/shared.nix index ec60bb1..8e66f36 100644 --- a/system/shared.nix +++ b/system/shared.nix @@ -88,6 +88,7 @@ "docker" "flatpak" "libvirtd" + "vboxusers" "wheel" ]; shell = pkgs.zsh;