summary refs log tree commit diff
path: root/machines/lapin/hardware.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-13 21:31:32 +0100
committerMel <einebeere@gmail.com>2024-11-13 21:31:32 +0100
commit74977a5367666c3b39d1d9c3c80d9fc4f08305c1 (patch)
tree0293f519428f41f1d893c6eae334e3e65b9967ad /machines/lapin/hardware.nix
parentd39ae5050c81bb0cfea950ba57d32bc8c6304d37 (diff)
downloadnetwork-74977a5367666c3b39d1d9c3c80d9fc4f08305c1.tar.zst
network-74977a5367666c3b39d1d9c3c80d9fc4f08305c1.zip
Import old lapin configuration
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines/lapin/hardware.nix')
-rw-r--r--machines/lapin/hardware.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/machines/lapin/hardware.nix b/machines/lapin/hardware.nix
new file mode 100644
index 0000000..b33eb26
--- /dev/null
+++ b/machines/lapin/hardware.nix
@@ -0,0 +1,38 @@
+# 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/bf63f1e9-416c-4bba-b0e4-3ab1b53414db";
+      fsType = "ext4";
+    };
+
+  fileSystems."/boot" =
+    { device = "/dev/disk/by-uuid/ADF6-F1B5";
+      fsType = "vfat";
+    };
+
+  swapDevices =
+    [ { device = "/dev/disk/by-uuid/15e0485e-dff2-4eb5-9a4d-12c69baa3db1"; }
+    ];
+
+  # 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";
+}