about summary refs log tree commit diff
path: root/machines/aszlig
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2021-03-12 00:33:07 +0100
committeraszlig <aszlig@nix.build>2021-03-12 00:33:07 +0100
commite73fcff03faed773df2500965cb9c4a4fcfbc04d (patch)
treee4e0802ca047283833ce1bfb6e5581338b504d74 /machines/aszlig
parent269adb86ad7147501393a79b0db0248d0334695b (diff)
machines: Add temporary laptop slylandro
Since Tishtushi had a SSD failure and thus became a majoor nuisance to
work with, I got a temporary laptop from someone (since I don't know
whether they want to be mentioned, I leave out their name for now) in
order to be able to be more productive than waiting for several seconds
for a 1 KiB text file to be saved.

Right now, I'm not sure whether any firmware is needed for the temporary
laptop, so this is a hardware configuration just to get started with a
proper Hydra channel.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines/aszlig')
-rw-r--r--machines/aszlig/slylandro.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/machines/aszlig/slylandro.nix b/machines/aszlig/slylandro.nix
new file mode 100644
index 00000000..dd82799d
--- /dev/null
+++ b/machines/aszlig/slylandro.nix
@@ -0,0 +1,52 @@
+{ pkgs, lib, ... }:
+
+{
+  vuizvui.user.aszlig.profiles.workstation.enable = true;
+
+  vuizvui.system.kernel.bfq.enable = true;
+
+  boot = {
+    loader.systemd-boot.enable = true;
+    loader.grub.enable = lib.mkForce false;
+    loader.efi.canTouchEfiVariables = true;
+    kernelPackages = pkgs.linuxPackages_latest;
+
+    initrd = {
+      luks.devices = {
+        slylandro-swap = {
+          device = "/dev/disk/by-uuid/6ce7f3a4-64cc-4d5c-a220-662d3d589220";
+        };
+        slylandro-root = {
+          device = "/dev/disk/by-uuid/76ddcc8f-060e-44f9-af08-886d7395e466";
+        };
+      };
+    };
+  };
+
+  networking.hostName = "slylandro";
+  networking.wireless.enable = lib.mkForce true;
+  networking.interfaces.enp5s0.useDHCP = true;
+  networking.interfaces.wlp3s0.useDHCP = true;
+
+  fileSystems."/boot" = {
+    device = "/dev/disk/by-uuid/DF3B-267A";
+    fsType = "vfat";
+  };
+
+  fileSystems."/" = {
+    device = "/dev/disk/by-uuid/a96de4ae-60a3-463d-bca3-2ef7f207f8f4";
+    fsType = "btrfs";
+    options = [ "space_cache" "compress=zstd" "noatime" ];
+  };
+
+  swapDevices = lib.singleton {
+    device = "/dev/disk/by-uuid/9c5a118d-656a-4bf5-833a-225bb2c887c4";
+  };
+
+  services.tlp.enable = true;
+
+  services.xserver.videoDrivers = [ "nouveau" "intel" ];
+  services.xserver.libinput.enable = true;
+
+  nix.maxJobs = 4;
+}