diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2025-05-18 12:08:25 +0000 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2025-05-18 12:08:25 +0000 |
| commit | eb1f2774f4ab15e8f2ec99150eeb3f342d133ea2 (patch) | |
| tree | 73957e3c27f6d0652d7f7a293d38a28052bff42f /machines/iso/hardware-configuration.nix | |
| parent | f47acf99fd0817a335742f7a6863faa56d3ba6f0 (diff) | |
| parent | 7d7f5905769c488d2129b2ec0ade6451f0765d84 (diff) | |
Merge branch 'master' of ssh://bosco:/srv/git/.flake
Diffstat (limited to 'machines/iso/hardware-configuration.nix')
| -rw-r--r-- | machines/iso/hardware-configuration.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/machines/iso/hardware-configuration.nix b/machines/iso/hardware-configuration.nix new file mode 100644 index 0000000..78601ad --- /dev/null +++ b/machines/iso/hardware-configuration.nix @@ -0,0 +1,35 @@ +# hardware-configuration.nix + +# 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 = [ "xhci_pci" "usbhid" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-label/NIXOS_SD"; # this is important! + fsType = "ext4"; + options = [ "noatime" ]; + }; + + 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.end0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +} |
