about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--machines/default.nix1
-rw-r--r--machines/sternenseemann/racker.nix69
2 files changed, 70 insertions, 0 deletions
diff --git a/machines/default.nix b/machines/default.nix
index 9b2d3e69..68185b9d 100644
--- a/machines/default.nix
+++ b/machines/default.nix
@@ -26,6 +26,7 @@ with import ../lib;
     # mikiya = callMachine ./profpatsch/mikiya.nix {};
   };
   sternenseemann = {
+    racker = callMachine ./sternenseemann/racker.nix {};
     wolfgang = callMachine ./sternenseemann/wolfgang.nix {};
   };
   misc = {
diff --git a/machines/sternenseemann/racker.nix b/machines/sternenseemann/racker.nix
new file mode 100644
index 00000000..63dc554f
--- /dev/null
+++ b/machines/sternenseemann/racker.nix
@@ -0,0 +1,69 @@
+{ config, lib, pkgs, ... }:
+
+{
+  imports = [
+    ./base.nix
+    ./base-laptop.nix
+    ./fonts.nix
+    ./user-lukas.nix
+  ];
+
+  config = {
+    hardware.bluetooth.enable = false;
+
+    nixpkgs.localSystem = {
+      system = "i686-linux";
+      config = "i686-unknown-linux-gnu";
+    };
+
+    system.stateVersion = "21.05";
+
+    boot = {
+      loader.grub = {
+        enable = true;
+        version = 2;
+        device = "/dev/sda";
+      };
+
+      initrd.availableKernelModules = [
+        "uhci_hcd"
+        "ehci_pci"
+        "ata_piix"
+        "usb_storage"
+        "floppy"
+        "usblp"
+        "pcspkr"
+        "btusb"
+      ];
+
+      initrd.luks.devices = {
+        main.device = "/dev/disk/by-label/crypted-main";
+        swap.device = "/dev/disk/by-label/crypted-swap";
+      };
+    };
+
+    fileSystems = {
+      "/" = {
+        device = "/dev/mapper/main";
+        fsType = "btrfs";
+      };
+
+      "/boot" = {
+        device = "/dev/disk/by-label/boot";
+        fsType = "ext4";
+      };
+    };
+
+    swapDevices = [
+      { device = "/dev/mapper/swap"; }
+    ];
+
+    hardware.enableRedistributableFirmware = true;
+
+    networking.hostName = "racker";
+
+    nix.maxJobs = 2;
+
+    vuizvui.profiles.tvl.enable = true;
+  };
+}