diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 19:27:16 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 19:30:19 +0200 |
commit | c417f127e973491b46f204e397f8152ba5d06254 (patch) | |
tree | 62f9d6986c3fc8a74d1ac8e680eb3644ce33e103 /hosts/lahmu/hardware | |
parent | fix(modules/legacy/conf/zsh): Move ENV-vars to their own modules (diff) | |
download | nixos-config-c417f127e973491b46f204e397f8152ba5d06254.zip |
refactor(hosts): Move all unmaintained hosts to the `_unmaintained` dir
Diffstat (limited to 'hosts/lahmu/hardware')
-rw-r--r-- | hosts/lahmu/hardware/cpu.nix | 4 | ||||
-rw-r--r-- | hosts/lahmu/hardware/default.nix | 33 | ||||
-rw-r--r-- | hosts/lahmu/hardware/gpu.nix | 15 |
3 files changed, 0 insertions, 52 deletions
diff --git a/hosts/lahmu/hardware/cpu.nix b/hosts/lahmu/hardware/cpu.nix deleted file mode 100644 index 2d7232cd..00000000 --- a/hosts/lahmu/hardware/cpu.nix +++ /dev/null @@ -1,4 +0,0 @@ -{config, ...}: { - powerManagement.cpuFreqGovernor = "powersave"; - hardware.cpu.amd.updateMicrocode = true; # Why not? -} diff --git a/hosts/lahmu/hardware/default.nix b/hosts/lahmu/hardware/default.nix deleted file mode 100644 index bc7b1f96..00000000 --- a/hosts/lahmu/hardware/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - config, - lib, - pkgs, - modulesPath, - ... -}: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") # TODO: is this necessary? - (modulesPath + "/profiles/qemu-guest.nix") - ./cpu.nix - ./gpu.nix - ]; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - - system.fileSystemLayouts = { - enable = true; - mainDisk = "/dev/disk/by-uuid/c0382dda-1f55-4209-967d-b8b22cb0f6e1"; - efiDisk = "/dev/disk/by-uuid/167D-2F0B"; - ssd = true; - swap = { - uuid = "c0382dda-1f55-4209-967d-b8b22cb0f6e1"; - resumeOffset = "140544"; - }; - }; - - boot = { - kernelModules = []; - - initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"]; - }; -} diff --git a/hosts/lahmu/hardware/gpu.nix b/hosts/lahmu/hardware/gpu.nix deleted file mode 100644 index 88c9b88a..00000000 --- a/hosts/lahmu/hardware/gpu.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: { - # 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"; -} |