about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-08-02 19:50:21 +0200
committeraszlig <aszlig@nix.build>2022-08-02 19:50:21 +0200
commit974bdc8dec5dc1a14452ad7e679fc5c57bf95ec6 (patch)
treeea675eb8b84c2e9a88b26853a7fcbcffb22c26d7 /machines
parent1040990d6e826b514470344b2b80b3a8034bb11b (diff)
machines: Re-add slylandro with different hardware
I've already got a temporary laptop back then where I used the same name
and I introduced it in e73fcff03faed773df2500965cb9c4a4fcfbc04d and
subsequently removed it in 240378dcec205b78b32c329ff02eb9bea8af2c11.

With the new permanent hardware having arrived today, I decided to reuse
the name, because it sounds nicer than "tishtushi" (which is my crappy
laptop) and I also like the Slylandro Probes[1] a lot in Star Control.

The configuration here is pretty much bare-bones as we had before with
the temporary hardware and it's essentially a remix between dnyarri and
the old config, more to refine later...

[1]: https://wiki.uqm.stack.nl/Probe

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines')
-rw-r--r--machines/aszlig/slylandro.nix56
-rw-r--r--machines/default.nix1
2 files changed, 57 insertions, 0 deletions
diff --git a/machines/aszlig/slylandro.nix b/machines/aszlig/slylandro.nix
new file mode 100644
index 00000000..cb52496f
--- /dev/null
+++ b/machines/aszlig/slylandro.nix
@@ -0,0 +1,56 @@
+{ pkgs, lib, ... }:
+
+{
+  vuizvui.user.aszlig.profiles.workstation.enable = true;
+
+  boot = {
+    loader.systemd-boot.enable = true;
+    loader.grub.enable = false;
+    loader.efi.canTouchEfiVariables = true;
+    kernelPackages = pkgs.linuxPackages_latest;
+
+    initrd = {
+      availableKernelModules = [ "xhci_pci" "ahci" "nvme" ];
+      luks.devices = {
+        slylandro-swap = {
+          device = "/dev/disk/by-uuid/30904e53-cc8f-4039-9244-fc648dc6f801";
+        };
+        slylandro-root = {
+          device = "/dev/disk/by-uuid/4b63a017-796b-4608-a6eb-85a47f894d30";
+        };
+      };
+    };
+  };
+
+  hardware.cpu.amd.updateMicrocode = true;
+  hardware.video.hidpi.enable = true;
+
+  networking.hostName = "slylandro";
+  networking.wireless.enable = lib.mkForce true;
+  networking.interfaces.enp1s0.useDHCP = true;
+  networking.interfaces.wlp3s0.useDHCP = true;
+
+  fileSystems."/boot" = {
+    device = "/dev/disk/by-uuid/DF50-CD44";
+    fsType = "vfat";
+  };
+
+  fileSystems."/" = {
+    device = "/dev/disk/by-uuid/87a842a8-e2c5-45b6-8e67-58fec33b5eee";
+    fsType = "btrfs";
+    options = [
+      "autodefrag" "space_cache=v2" "compress=zstd" "noatime" "discard=async"
+    ];
+  };
+
+  swapDevices = lib.singleton {
+    device = "/dev/disk/by-uuid/feace1d7-e48d-4b7e-a601-1515f9b90c20";
+  };
+
+  services.tlp.enable = true;
+
+  services.xserver.videoDrivers = [ "amdgpu" ];
+  services.xserver.libinput.enable = true;
+
+  nix.maxJobs = 16;
+}
diff --git a/machines/default.nix b/machines/default.nix
index d726f01f..e5978a80 100644
--- a/machines/default.nix
+++ b/machines/default.nix
@@ -4,6 +4,7 @@ with import ../lib;
   aszlig = {
     dnyarri   = callMachine ./aszlig/dnyarri.nix {};
     meshuggah = callMachine ./aszlig/meshuggah.nix {};
+    slylandro = callMachine ./aszlig/slylandro.nix {};
     tishtushi = callMachine ./aszlig/tishtushi.nix {};
     managed = {
       brawndo = callMachine ./aszlig/managed/brawndo.nix {};