diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-19 16:26:18 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-19 16:26:18 +0200 |
| commit | 7579085c18af961d48dc7847f8a2630a5121f57e (patch) | |
| tree | c20645e0db340bbc3f79ee5b8fea7de520ec82ef /hosts/workstation/hardware.nix | |
| parent | 018971162cad0d64a17fbfef854467765edce987 (diff) | |
add amdgpu to workstation
Diffstat (limited to 'hosts/workstation/hardware.nix')
| -rw-r--r-- | hosts/workstation/hardware.nix | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/hosts/workstation/hardware.nix b/hosts/workstation/hardware.nix index d780153..c9e8c35 100644 --- a/hosts/workstation/hardware.nix +++ b/hosts/workstation/hardware.nix @@ -1,7 +1,13 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ + config, + lib, + pkgs, + modulesPath, + ... +}: { imports = [ (modulesPath + "/profiles/all-hardware.nix") ]; @@ -17,25 +23,31 @@ "btrfs" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ + "kvm-intel" + "amdgpu" + ]; boot.extraModulePackages = [ ]; boot.kernelParams = [ "quiet" "loglevel=3" ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/0bc7dac6-ac83-4429-8f0c-7d92e46e387b"; - fsType = "btrfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/0bc7dac6-ac83-4429-8f0c-7d92e46e387b"; + fsType = "btrfs"; + }; boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/df2e1c34-093a-4678-9665-8c96ca42b1a2"; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/72B1-F610"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/72B1-F610"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; swapDevices = [ ]; |