diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 47a81e3a..82f3d515 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -91,11 +91,6 @@ ]; }; - hardware.graphics = { - enable = true; - enable32Bit = true; - }; - # Packages nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ @@ -138,7 +133,26 @@ }; # Set up virtualisation - virtualisation.libvirtd.enable = true; + virtualisation.libvirtd = { + enable = true; + + # Enable TPM emulation (for Windows 11) + qemu = { + swtpm.enable = true; + }; + }; + + # Enable USB redirection + virtualisation.spiceUSBRedirection.enable = true; + + # Allow VM management + users.groups.libvirtd.members = [ "trude" ]; + users.groups.kvm.members = [ "trude" ]; + + hardware.graphics = { + enable = true; + enable32Bit = true; + }; # UPS (Green Cell 2000VA) power.ups = { diff --git a/nixos/flake.lock b/nixos/flake.lock index cde70dad..0d969651 100644 --- a/nixos/flake.lock +++ b/nixos/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1770654520, - "narHash": "sha256-mg5WZMIPGsFu9MxSrUcuJUPMbfMsF77el5yb/7rc10k=", + "lastModified": 1771102945, + "narHash": "sha256-e5NfW8NhC3qChR8bHVni/asrig/ZFzd1wzpq+cEE/tg=", "owner": "nix-community", "repo": "home-manager", - "rev": "6c4fdbe1ad198fac36c320fd45c5957324a80b8e", + "rev": "ff5e5d882c51f9a032479595cbab40fd04f56399", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1770562336, - "narHash": "sha256-ub1gpAONMFsT/GU2hV6ZWJjur8rJ6kKxdm9IlCT0j84=", + "lastModified": 1771008912, + "narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d6c71932130818840fc8fe9509cf50be8c64634f", + "rev": "a82ccc39b39b621151d6732718e3e250109076fa", "type": "github" }, "original": { diff --git a/nixos/home.nix b/nixos/home.nix index 4cf76b67..5e52a47e 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -31,6 +31,7 @@ prismlauncher protonup-qt wayvr + unityhub # Gnome Extensions gnomeExtensions.caffeine @@ -53,8 +54,9 @@ gnome-sound-recorder # Virtualisation - gnome-boxes # VM management - dnsmasq # VM networking + gnome-boxes + dnsmasq + phodav # AI lmstudio @@ -414,7 +416,7 @@ "_processor_usage_" "_gpu#1_usage_" "_memory_usage_" - "_swap_usage_" + "_memory_swap_usage_" "__temperature_max__" ]; icon-style = 1;