about summary refs log tree commit diff stats
path: root/hosts/tiamat
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-07-05 16:25:36 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-07-05 19:43:07 +0200
commitfd9ed4e5e826674131f4887853150d3795dd222f (patch)
tree17998feba0df8ff1ab2f2c4a8bcac270a37ceda6 /hosts/tiamat
parentbuild(treewide): Update (diff)
downloadnixos-config-fd9ed4e5e826674131f4887853150d3795dd222f.tar.gz
nixos-config-fd9ed4e5e826674131f4887853150d3795dd222f.zip
refactor(hosts): Also move bluetooth and graphics to separate modules
Diffstat (limited to '')
-rw-r--r--hosts/tiamat/default.nix3
-rw-r--r--hosts/tiamat/hardware.nix28
2 files changed, 6 insertions, 25 deletions
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";