diff options
author | Alan Pearce | 2025-02-13 21:09:23 +0100 |
---|---|---|
committer | Alan Pearce | 2025-02-13 21:09:23 +0100 |
commit | 20d560a78a81e406a76220a36adc99cd112d12ff (patch) | |
tree | 146ea683efb87c476fc10f2e3f9b933c35ffb41d /system/nano-hardware.nix | |
parent | 10bf0a9c691a7d85ddd63de18def9865612e410e (diff) | |
download | nixfiles-20d560a78a81e406a76220a36adc99cd112d12ff.tar.lz nixfiles-20d560a78a81e406a76220a36adc99cd112d12ff.tar.zst nixfiles-20d560a78a81e406a76220a36adc99cd112d12ff.zip |
Add NanoPi R6C
Diffstat (limited to 'system/nano-hardware.nix')
-rw-r--r-- | system/nano-hardware.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/system/nano-hardware.nix b/system/nano-hardware.nix new file mode 100644 index 00000000..96a0a287 --- /dev/null +++ b/system/nano-hardware.nix @@ -0,0 +1,42 @@ +# 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 = [ "nvme" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { + device = "/dev/disk/by-uuid/3e2e984a-0f2d-4615-be50-cea40090b463"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { + device = "/dev/disk/by-uuid/96FE-219D"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = + [{ device = "/dev/disk/by-uuid/cfedef33-a711-42dd-8816-b1e119e20e55"; }]; + + # 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.eth0.useDHCP = lib.mkDefault true; + # networking.interfaces.eth1.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +} |