diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-02-06 21:07:03 +0100 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-02-06 21:07:03 +0100 |
| commit | 0070d30074cb71ca745644384d230abeaa0a2d04 (patch) | |
| tree | e893d2552aedf611a9cfbf251c9fa5947b8aa42c /modules/hosts | |
| parent | 95ad3c1b80e082d8a443a318e8a7b18e5764d11c (diff) | |
fix(adam): setup gpu drivers
Diffstat (limited to 'modules/hosts')
| -rw-r--r-- | modules/hosts/adam/configuration.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/hosts/adam/configuration.nix b/modules/hosts/adam/configuration.nix index 92c387f..246fece 100644 --- a/modules/hosts/adam/configuration.nix +++ b/modules/hosts/adam/configuration.nix @@ -8,6 +8,7 @@ boot = { kernelPackages = pkgs.linuxPackages_latest; kernelParams = [ "amd_pstate=active" ]; + kernelModules = [ "amdgpu" ]; initrd.luks.devices."luks-803851e9-7fa8-4367-a927-0bb76d0fe830".device = "/dev/disk/by-uuid/803851e9-7fa8-4367-a927-0bb76d0fe830"; loader = { @@ -35,6 +36,12 @@ # Disable waiting for network to be online systemd.services.NetworkManager-wait-online.enable = false; + # Graphics configuration + hardware.graphics = { + enable = true; + enable32Bit = true; + }; + # User configuration users.users.schererleander = { isNormalUser = true; @@ -49,7 +56,12 @@ ]; }; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; + + hardware.enableRedistributableFirmware = true; nixpkgs.config.allowUnfree = true; nixpkgs.hostPlatform = "x86_64-linux"; |
