diff options
Diffstat (limited to 'host/Rory-portable/optional')
-rw-r--r-- | host/Rory-portable/optional/hardware-specific/amd.nix | 23 | ||||
-rw-r--r-- | host/Rory-portable/optional/hardware-specific/nvidia.nix | 20 |
2 files changed, 24 insertions, 19 deletions
diff --git a/host/Rory-portable/optional/hardware-specific/amd.nix b/host/Rory-portable/optional/hardware-specific/amd.nix index e24bcd0..4456c6f 100644 --- a/host/Rory-portable/optional/hardware-specific/amd.nix +++ b/host/Rory-portable/optional/hardware-specific/amd.nix @@ -1,10 +1,16 @@ -{ config, pkgs, lib, nhekoSrc, mtxclientSrc, ... }: +{ + config, + pkgs, + lib, + nhekoSrc, + mtxclientSrc, + ... +}: { - imports = - [ ]; + imports = [ ]; -boot.initrd.kernelModules = [ "amdgpu" ]; + boot.initrd.kernelModules = [ "amdgpu" ]; services = { xserver = { @@ -29,16 +35,11 @@ boot.initrd.kernelModules = [ "amdgpu" ]; rocmPackages.clr.icd amdvlk ]; - extraPackages32 = with pkgs; [ - driversi686Linux.amdvlk - ]; + extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ]; }; }; - systemd.tmpfiles.rules = [ - "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" - ]; + systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ]; system.stateVersion = "22.11"; # DO NOT EDIT! } - diff --git a/host/Rory-portable/optional/hardware-specific/nvidia.nix b/host/Rory-portable/optional/hardware-specific/nvidia.nix index 66b328f..c146c3a 100644 --- a/host/Rory-portable/optional/hardware-specific/nvidia.nix +++ b/host/Rory-portable/optional/hardware-specific/nvidia.nix @@ -1,17 +1,22 @@ -{ config, pkgs, lib, nhekoSrc, mtxclientSrc, ... }: +{ + config, + pkgs, + lib, + nhekoSrc, + mtxclientSrc, + ... +}: { - imports = - [ - - ]; + imports = [ + ]; services = { xserver = { - videoDrivers = ["nvidia"]; + videoDrivers = [ "nvidia" ]; #windowManager.i3.extraSessionCommands = '' - # todo: restore + # todo: restore #''; }; picom.backend = "glx"; @@ -37,4 +42,3 @@ system.stateVersion = "22.11"; # DO NOT EDIT! } - |