summary refs log tree commit diff
path: root/host/Rory-NTFS/optional/hardware-specific
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-04-15 19:33:50 +0200
committerRory& <root@rory.gay>2025-04-16 22:46:33 +0200
commit5f8a970db8b8a9f66ea8a9a9419b5b59d86a6e4d (patch)
treec255ce94093293f3c3897797f749a8270c746df4 /host/Rory-NTFS/optional/hardware-specific
parentDesktop changes (diff)
downloadRory-Open-Architecture-5f8a970db8b8a9f66ea8a9a9419b5b59d86a6e4d.tar.xz
Add NTFS box
Diffstat (limited to 'host/Rory-NTFS/optional/hardware-specific')
-rw-r--r--host/Rory-NTFS/optional/hardware-specific/amd.nix45
-rw-r--r--host/Rory-NTFS/optional/hardware-specific/nvidia.nix44
2 files changed, 89 insertions, 0 deletions
diff --git a/host/Rory-NTFS/optional/hardware-specific/amd.nix b/host/Rory-NTFS/optional/hardware-specific/amd.nix
new file mode 100644

index 0000000..4456c6f --- /dev/null +++ b/host/Rory-NTFS/optional/hardware-specific/amd.nix
@@ -0,0 +1,45 @@ +{ + config, + pkgs, + lib, + nhekoSrc, + mtxclientSrc, + ... +}: + +{ + imports = [ ]; + + boot.initrd.kernelModules = [ "amdgpu" ]; + + services = { + xserver = { + windowManager.i3.extraSessionCommands = '' + xrandr --output HDMI-1 --mode 3840x2160 --pos 0x0 --rotate normal --primary --output DP-1 --mode 1920x1080 --pos 3840x1080 --rotate normal --output HDMI-2 --off --output DP-2 --off + ''; + wacom.enable = true; + }; + picom.backend = "glx"; + }; + + environment.systemPackages = with pkgs; [ + rocmPackages.rocm-smi # useful to have + ]; + + hardware = { + graphics = { + enable = true; + #driSupport = true; + driSupport32Bit = true; + extraPackages = with pkgs; [ + rocmPackages.clr.icd + amdvlk + ]; + extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ]; + }; + }; + + systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ]; + + system.stateVersion = "22.11"; # DO NOT EDIT! +} diff --git a/host/Rory-NTFS/optional/hardware-specific/nvidia.nix b/host/Rory-NTFS/optional/hardware-specific/nvidia.nix new file mode 100644
index 0000000..c146c3a --- /dev/null +++ b/host/Rory-NTFS/optional/hardware-specific/nvidia.nix
@@ -0,0 +1,44 @@ +{ + config, + pkgs, + lib, + nhekoSrc, + mtxclientSrc, + ... +}: + +{ + imports = [ + + ]; + + services = { + xserver = { + videoDrivers = [ "nvidia" ]; + #windowManager.i3.extraSessionCommands = '' + # todo: restore + #''; + }; + picom.backend = "glx"; + }; + + hardware = { + graphics = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; + + nvidia = { + modesetting.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; + open = true; + nvidiaSettings = true; + nvidiaPersistenced = true; + package = config.boot.kernelPackages.nvidiaPackages.stable; + }; + }; + + system.stateVersion = "22.11"; # DO NOT EDIT! +}