diff options
| author | Kyren223 <contact@kyren.codes> | 2025-12-04 17:12:44 +0200 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2025-12-04 17:12:44 +0200 |
| commit | 0a932ea33469386844ef734b91fb12044861f051 (patch) | |
| tree | 7c17a3a6c2da9db4a2fa0bf7992f49f8a9e9be56 /hosts | |
| parent | b0e9d8a8b937f2c098ac8099aeca0f8ce4972662 (diff) | |
Changed some stuff for VM (probably the no internet issue?) and also
changed stuff to try and make my keychron keyboard work
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/configuration.nix | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 09ad44b..25b1b27 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -24,7 +24,7 @@ users.users.kyren = { isNormalUser = true; description = "Kyren"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "docker" ]; shell = pkgs.zsh; }; @@ -99,6 +99,20 @@ libGL noto-fonts + + pkg-config + xorg.libX11 + xorg.libxcb + fontconfig + freetype + dbus + + xorg.libX11 + xorg.libXcursor + xorg.libxcb + xorg.libXi + libxkbcommon + libz ]; # Enable sound with pipewire. @@ -140,9 +154,13 @@ runAsRoot = true; ovmf.enable = true; # Fix, see https://www.reddit.com/r/NixOS/comments/11j9qf7/virtio_fs_with_virtmanager/ - vhostUserPackages = with pkgs; [ virtiofsd ]; + vhostUserPackages = with pkgs; [ virtiofsd virtio-win pkgs.swtpm ]; }; - environment.systemPackages = [ pkgs.virtiofsd ]; # For shared fs + environment.systemPackages = [ + pkgs.virtiofsd # For shared fs + pkgs.virtio-win # For using virtio stuff in windows I think? + pkgs.swtpm # For being able to emulate TPM 2.0 (otherwise it errors) + ]; # Fix no internet in libvirt, see https://discourse.nixos.org/t/issues-with-virt-manager-default-network-down-in-nixos-25-11/66808/3 networking.firewall.trustedInterfaces = [ "wlp5s0" "virbr0" ]; @@ -171,4 +189,10 @@ # Fixes "The name org.freedesktop.UDisks2 was not provided by any .service files" # See https://www.reddit.com/r/NixOS/comments/1goziru/dolphin_on_hyprland/ services.udisks2.enable = true; + + services.udev.extraRules = '' + KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d030", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" + SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" + SUBSYSTEM=="usb", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d030", MODE="0666", GROUP="users", TAG+="uaccess", TAG+="udev-acl" + ''; } |
