Compare commits

...

4 Commits

Author SHA1 Message Date
tux
f71dcfb43c feat(hyprland): use iGPU 2025-12-25 16:54:07 +05:30
tux
61f4af216e feat(canopus): add vfio kernel modules 2025-12-25 16:53:26 +05:30
tux
bb1dce3b3a feat: add libvirt to persist dir 2025-12-25 16:51:14 +05:30
tux
8667f72e87 feat: enable spice usb redirection 2025-12-25 16:49:15 +05:30
3 changed files with 43 additions and 29 deletions

View File

@@ -103,7 +103,14 @@
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = ["ntfs"]; supportedFilesystems = ["ntfs"];
initrd.systemd = { initrd = {
kernelModules = [
"vfio_pci"
"vfio"
"vfio_iommu_type1"
];
systemd = {
enable = lib.mkForce true; enable = lib.mkForce true;
services.wipe-my-fs = { services.wipe-my-fs = {
@@ -139,6 +146,7 @@
''; '';
}; };
}; };
};
loader = { loader = {
systemd-boot = { systemd-boot = {
@@ -393,6 +401,7 @@
"/var/lib/docker" "/var/lib/docker"
"/var/lib/waydroid" "/var/lib/waydroid"
"/var/lib/iwd" "/var/lib/iwd"
"/var/lib/libvirt"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
]; ];
files = [ files = [

View File

@@ -35,6 +35,10 @@
spotify = "wezterm start --class wezterm-floating -e spotify_player"; spotify = "wezterm start --class wezterm-floating -e spotify_player";
filemanager = "wezterm start --class wezterm-floating -e superfile"; filemanager = "wezterm start --class wezterm-floating -e superfile";
in { in {
# See https://wiki.hyprland.org/Configuring/Multi-GPU
# @TODO: use card by path instead off symlink
env = "AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1";
#-- Output #-- Output
# See https://wiki.hyprland.org/Configuring/Monitors # See https://wiki.hyprland.org/Configuring/Monitors
monitor = "eDP-1,2560x1440@90,0x0,1"; monitor = "eDP-1,2560x1440@90,0x0,1";

View File

@@ -10,6 +10,7 @@
swtpm.enable = true; swtpm.enable = true;
}; };
}; };
spiceUSBRedirection.enable = true;
}; };
users.users.${username}.extraGroups = ["libvirtd"]; users.users.${username}.extraGroups = ["libvirtd"];