summaryrefslogtreecommitdiff
path: root/hostnix/weebnix/hardware-configuration.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2023-09-19 23:13:32 -0400
committerJoe Mou <dev@mou.fo>2023-09-19 23:39:04 -0400
commit79b49415f86d575d04e3ad670efcaa2b3f42823d (patch)
tree1c9a95168c355fdcc62a5eeca4a7ba61a6a2be9f /hostnix/weebnix/hardware-configuration.nix
nixos-generate-config
Diffstat (limited to 'hostnix/weebnix/hardware-configuration.nix')
-rw-r--r--hostnix/weebnix/hardware-configuration.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/hostnix/weebnix/hardware-configuration.nix b/hostnix/weebnix/hardware-configuration.nix
new file mode 100644
index 0000000..3964970
--- /dev/null
+++ b/hostnix/weebnix/hardware-configuration.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 + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/574841f9-3d47-419b-a431-e0c0c0c4ee9d";
+ fsType = "btrfs";
+ options = [ "subvol=nixos-root" ];
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/8D56-48CD";
+ fsType = "vfat";
+ };
+
+ 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.enabcm6e4ei0.useDHCP = lib.mkDefault true;
+ # networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
+}