diff options
| author | Joe Mou <dev@mou.fo> | 2024-03-11 14:30:14 +1100 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2024-03-11 14:30:14 +1100 |
| commit | 7429a17bdb653f0ba0e135c4a922034f6b7ef848 (patch) | |
| tree | a474c44e131355a9aecb2099101a0ba18615d315 /hostnix/creep/hardware-configuration.nix | |
| parent | 0e05552c1c9d0d0baee4640a5621b7691fd2a1e0 (diff) | |
creep: initial configuration
Diffstat (limited to 'hostnix/creep/hardware-configuration.nix')
| -rw-r--r-- | hostnix/creep/hardware-configuration.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/hostnix/creep/hardware-configuration.nix b/hostnix/creep/hardware-configuration.nix new file mode 100644 index 0000000..ed21088 --- /dev/null +++ b/hostnix/creep/hardware-configuration.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 + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "usb_storage" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/6457623e-7a80-41bc-8124-9aba2472a46d"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/AD39-9DD6"; + 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.end0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +} |
