aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/mammun_on_vm/hardware
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-04 17:20:35 +0100
committerene <ene@sils.li>2023-03-04 17:20:35 +0100
commit44f91348afb3ba7670842d5b60f33d995b947289 (patch)
tree624f2b8870a3a559c90512d6779457092e67c9bb /hosts/mammun_on_vm/hardware
parentFix(hm/conf/yambar): Update the deps (diff)
downloadnixos-config-44f91348afb3ba7670842d5b60f33d995b947289.zip
Fix(hosts/mammon_on_vm)!: Delete
Diffstat (limited to 'hosts/mammun_on_vm/hardware')
-rw-r--r--hosts/mammun_on_vm/hardware/cpu.nix4
-rw-r--r--hosts/mammun_on_vm/hardware/default.nix28
-rw-r--r--hosts/mammun_on_vm/hardware/gpu.nix15
3 files changed, 0 insertions, 47 deletions
diff --git a/hosts/mammun_on_vm/hardware/cpu.nix b/hosts/mammun_on_vm/hardware/cpu.nix
deleted file mode 100644
index 2d7232cd..00000000
--- a/hosts/mammun_on_vm/hardware/cpu.nix
+++ /dev/null
@@ -1,4 +0,0 @@
-{config, ...}: {
- powerManagement.cpuFreqGovernor = "powersave";
- hardware.cpu.amd.updateMicrocode = true; # Why not?
-}
diff --git a/hosts/mammun_on_vm/hardware/default.nix b/hosts/mammun_on_vm/hardware/default.nix
deleted file mode 100644
index ba23e69b..00000000
--- a/hosts/mammun_on_vm/hardware/default.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- config,
- lib,
- pkgs,
- modulesPath,
- ...
-}: {
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- (modulesPath + "/profiles/qemu-guest.nix")
- ./cpu.nix
- ./gpu.nix
- ];
-
- nixpkgs.hostPlatform = "x86_64-linux";
-
- system.fileSystemLayouts = {
- enable = true;
- mainDisk = "/dev/disk/by-uuid/b1974623-df36-4367-bf12-c0778cd8ff33";
- efiDisk = "/dev/disk/by-uuid/201D-E6E7";
- };
-
- boot = {
- kernelModules = ["kvm-amd"];
-
- initrd.availableKernelModules = ["xhci_pci" "nvme" "rtsx_pci_sdmmc" "ahci" "ehci_pci" "sd_mod" "sr_mod" "sdhci_pci"];
- };
-}
diff --git a/hosts/mammun_on_vm/hardware/gpu.nix b/hosts/mammun_on_vm/hardware/gpu.nix
deleted file mode 100644
index d744962c..00000000
--- a/hosts/mammun_on_vm/hardware/gpu.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-# vim: ts=2
-{pkgs, ...}: {
- boot.initrd.kernelModules = ["amdgpu"];
- # for Southern Islands (SI ie. GCN 1) cards and for Sea Islands (CIK ie. GCN 2) cards
- boot.kernelParams = ["radeon.si_support=0" "amdgpu.si_support=1" "radeon.cik_support=0" "amdgpu.cik_support=1"];
-
- hardware.opengl.driSupport = true;
- # For 32 bit applications
- hardware.opengl.driSupport32Bit = true;
-
- hardware.opengl.extraPackages = with pkgs; [
- rocm-opencl-icd
- rocm-opencl-runtime
- ];
-}