diff options
author | Alan Pearce | 2024-04-11 00:04:06 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-11 00:04:06 +0200 |
commit | 6c18a33c758f0226e660f924ddd71a6d3ad53004 (patch) | |
tree | 946b87a7e268604a47217e5e3250e144b4eaf3f0 /system/nanopi-hardware.nix | |
parent | 2b09b74ba617346a0c9c932543e658837ef9e5d2 (diff) | |
download | nixfiles-6c18a33c758f0226e660f924ddd71a6d3ad53004.tar.lz nixfiles-6c18a33c758f0226e660f924ddd71a6d3ad53004.tar.zst nixfiles-6c18a33c758f0226e660f924ddd71a6d3ad53004.zip |
Import server configurations
Diffstat (limited to 'system/nanopi-hardware.nix')
-rw-r--r-- | system/nanopi-hardware.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/system/nanopi-hardware.nix b/system/nanopi-hardware.nix new file mode 100644 index 00000000..7f7d03ca --- /dev/null +++ b/system/nanopi-hardware.nix @@ -0,0 +1,35 @@ +# 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/6adfb32b-ebe9-4116-86e8-829d2c9dc79d"; + fsType = "ext4"; + }; + + fileSystems."/mnt/sd" = + { device = "/dev/disk/by-uuid/79d9c190-1728-42ae-8cfd-b03d4a10bdb3"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/mnt/sd/boot"; + fsType = "none"; + options = [ "bind" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +} |