diff options
Diffstat (limited to 'hosts/_unmaintained/lahmu')
-rw-r--r-- | hosts/_unmaintained/lahmu/default.nix | 24 | ||||
-rw-r--r-- | hosts/_unmaintained/lahmu/hardware/cpu.nix | 4 | ||||
-rw-r--r-- | hosts/_unmaintained/lahmu/hardware/default.nix | 33 | ||||
-rw-r--r-- | hosts/_unmaintained/lahmu/hardware/gpu.nix | 15 | ||||
-rw-r--r-- | hosts/_unmaintained/lahmu/networking.nix | 14 |
5 files changed, 90 insertions, 0 deletions
diff --git a/hosts/_unmaintained/lahmu/default.nix b/hosts/_unmaintained/lahmu/default.nix new file mode 100644 index 00000000..94d8b054 --- /dev/null +++ b/hosts/_unmaintained/lahmu/default.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + nixpkgs, + home-manager, + ... +}: { + imports = [ + ./hardware + ./networking.nix + + ../../sys + ]; + + soispha = { + locale.enable = true; + users = { + # enable = true; + hashedPassword = "$y$jFT$qi3wS9njrMl2y55b3NOBI0$j40Qt6AAkMSfZ82KPhqMaUaPztWtPps1wOqaXaF/L.6"; + }; + }; + + system.stateVersion = "23.05"; +} diff --git a/hosts/_unmaintained/lahmu/hardware/cpu.nix b/hosts/_unmaintained/lahmu/hardware/cpu.nix new file mode 100644 index 00000000..2d7232cd --- /dev/null +++ b/hosts/_unmaintained/lahmu/hardware/cpu.nix @@ -0,0 +1,4 @@ +{config, ...}: { + powerManagement.cpuFreqGovernor = "powersave"; + hardware.cpu.amd.updateMicrocode = true; # Why not? +} diff --git a/hosts/_unmaintained/lahmu/hardware/default.nix b/hosts/_unmaintained/lahmu/hardware/default.nix new file mode 100644 index 00000000..bc7b1f96 --- /dev/null +++ b/hosts/_unmaintained/lahmu/hardware/default.nix @@ -0,0 +1,33 @@ +{ + 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/_unmaintained/lahmu/hardware/gpu.nix b/hosts/_unmaintained/lahmu/hardware/gpu.nix new file mode 100644 index 00000000..88c9b88a --- /dev/null +++ b/hosts/_unmaintained/lahmu/hardware/gpu.nix @@ -0,0 +1,15 @@ +{ + 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"; +} diff --git a/hosts/_unmaintained/lahmu/networking.nix b/hosts/_unmaintained/lahmu/networking.nix new file mode 100644 index 00000000..1ef69e7c --- /dev/null +++ b/hosts/_unmaintained/lahmu/networking.nix @@ -0,0 +1,14 @@ +{ + config, + lib, + ... +}: { + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; + networking.hostName = "lahmu"; +} |