about summary refs log tree commit diff
path: root/hardware
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-09-24 20:35:09 +0200
committerMel <einebeere@gmail.com>2023-09-24 20:35:09 +0200
commit06900b906fb64df473a5955b21c64ede4616d378 (patch)
treea9aa19a2c206cba4634e590c8bf300584ef14803 /hardware
parent04b8ac189c5f7d403d4b59b5d2cbabe689922f89 (diff)
downloadrnrd-06900b906fb64df473a5955b21c64ede4616d378.tar.zst
rnrd-06900b906fb64df473a5955b21c64ede4616d378.zip
Create base config from lapin
Diffstat (limited to 'hardware')
-rw-r--r--hardware/lapin.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/hardware/lapin.nix b/hardware/lapin.nix
new file mode 100644
index 0000000..b33eb26
--- /dev/null
+++ b/hardware/lapin.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";
+}