summary refs log tree commit diff
path: root/machines/taupe/hardware.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-15 03:27:19 +0200
committerMel <mel@rnrd.eu>2025-07-15 03:30:56 +0200
commit9fd6ea4a21a9112425d4f8d46178404d7b33f386 (patch)
tree91d951398c53f8f02cda31f00471c74ae8afaf02 /machines/taupe/hardware.nix
parent1bc37f9dc418b0394ea9498ceb361ba545230fd0 (diff)
downloadnetwork-9fd6ea4a21a9112425d4f8d46178404d7b33f386.tar.zst
network-9fd6ea4a21a9112425d4f8d46178404d7b33f386.zip
Add 'taupe' server serving as exit node
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/taupe/hardware.nix')
-rw-r--r--machines/taupe/hardware.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/machines/taupe/hardware.nix b/machines/taupe/hardware.nix
new file mode 100644
index 0000000..8ddf1b1
--- /dev/null
+++ b/machines/taupe/hardware.nix
@@ -0,0 +1,37 @@
+# Do not modify this file!  It was generated by ‘nixos-generate-config’
+# and may be overwritten by future invocations.  Please make changes
+# to /etc/nixos/configuration.nix instead.
+{ config, lib, pkgs, modulesPath, ... }:
+
+{
+  imports =
+    [ (modulesPath + "/profiles/qemu-guest.nix")
+    ];
+
+  boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" "sr_mod" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ ];
+  boot.extraModulePackages = [ ];
+
+  fileSystems."/" =
+    { device = "/dev/disk/by-uuid/555b9b22-25a3-47a7-8f28-94313b67d41f";
+      fsType = "ext4";
+    };
+
+  fileSystems."/boot" =
+    { device = "/dev/disk/by-uuid/A79C-C5F9";
+      fsType = "vfat";
+      options = [ "fmask=0022" "dmask=0022" ];
+    };
+
+  swapDevices = [ ];
+
+  # 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.enp1s0.useDHCP = lib.mkDefault true;
+
+  nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
+}