From fd9ed4e5e826674131f4887853150d3795dd222f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 5 Jul 2024 16:25:36 +0200 Subject: refactor(hosts): Also move bluetooth and graphics to separate modules --- hosts/tiamat/default.nix | 3 +++ hosts/tiamat/hardware.nix | 28 +++------------------------- 2 files changed, 6 insertions(+), 25 deletions(-) (limited to 'hosts/tiamat') diff --git a/hosts/tiamat/default.nix b/hosts/tiamat/default.nix index 06bca3bc..17e2ae9d 100644 --- a/hosts/tiamat/default.nix +++ b/hosts/tiamat/default.nix @@ -19,6 +19,9 @@ mode = "systemd-networkd"; hostName = "tiamat"; }; + bluetooth = { + enable = true; + }; polkit.enable = true; power.enable = true; diff --git a/hosts/tiamat/hardware.nix b/hosts/tiamat/hardware.nix index d8e62af0..8ecb4ce0 100644 --- a/hosts/tiamat/hardware.nix +++ b/hosts/tiamat/hardware.nix @@ -1,33 +1,9 @@ -{ - modulesPath, - pkgs, - ... -}: { +{modulesPath, ...}: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") # TODO: is this necessary? ]; hardware = { - # opengl.extraPackages = with pkgs; [ - # rocm-opencl-icd # open-cl - # amdvlk # or directly through mesa - # amd-media-driver # libva - # ]; - # - # # Force radv, TODO: is this logical? - # environment.variables.AMD_VULKAN_ICD = "RADV"; - - opengl = { - enable = true; - extraPackages = with pkgs; [ - vaapiVdpau - libvdpau-va-gl - - amdvlk # or directly through mesa - ]; - }; - - cpu.amd.updateMicrocode = true; # Why not? bluetooth = { enable = true; powerOnBoot = true; @@ -37,10 +13,12 @@ soispha = { hardware = { enable = true; + cpuType = "amd"; moonlander = { enableFlashing = true; }; }; + disks = { enable = true; disk = "/dev/disk/by-id/nvme-CT1000P5SSD8_21032C857568"; -- cgit 1.4.1