aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/mammun_on_vm
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/mammun_on_vm')
-rw-r--r--hosts/mammun_on_vm/configuration.nix25
-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
-rw-r--r--hosts/mammun_on_vm/networking.nix16
5 files changed, 0 insertions, 88 deletions
diff --git a/hosts/mammun_on_vm/configuration.nix b/hosts/mammun_on_vm/configuration.nix
deleted file mode 100644
index 294fc815..00000000
--- a/hosts/mammun_on_vm/configuration.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-# vim: ts=2
-{
- config,
- lib,
- nixpkgs,
- home-manager,
- pkgs,
- ...
-}: {
- imports = [
- ./hardware
- ./networking.nix
-
- ../../system
-
- ../../services
- ];
- soispha = {
- users = {
- hashedPassword = "$y$jDT$O/42/7REOL50onRYcTV9R1$Ot3bPAh2raHmPN3yScP4wsJRtNqrMtTBzOq9oRJeRA0";
- };
- };
-
- system.stateVersion = "23.05";
-}
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
- ];
-}
diff --git a/hosts/mammun_on_vm/networking.nix b/hosts/mammun_on_vm/networking.nix
deleted file mode 100644
index 0ec9460b..00000000
--- a/hosts/mammun_on_vm/networking.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- config,
- lib,
- ...
-}: {
- networking = {
- networkmanager = {
- enable = true;
- dns = "default";
- wifi = {
- powersave = true;
- };
- };
- hostName = "mammun_on_vm";
- };
-}