about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-27 11:56:19 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-27 11:56:19 +0200
commit387b219fd511960c51c74f63a2d5f56e9ba963a5 (patch)
tree26f9baadb175fdad9d6be05fc60ca4a18bba8d72 /machines
parent0d7f39d55e3596e4b339f987158433207e93db10 (diff)
machines/sternenseemann/racker: init
Minimal configuration, just to get some cache going (that's at least the
idea). This should at least make having i686-linux builds worth
something :)
Diffstat (limited to 'machines')
-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;
+  };
+}