diff --git a/systems.nix b/systems.nix index 3a71172..98e2d23 100644 --- a/systems.nix +++ b/systems.nix @@ -43,4 +43,5 @@ in { pi400 = mkSystem "aarch64-unknown-linux-gnu" "pi400"; pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4"; + pi4-2 = mkSystem "aarch64-unknown-linux-gnu" "pi4-2"; } diff --git a/systems/pi4-2/default.nix b/systems/pi4-2/default.nix new file mode 100644 index 0000000..9d64798 --- /dev/null +++ b/systems/pi4-2/default.nix @@ -0,0 +1,45 @@ +{ + modulesPath, + lib, + nixos-hardware, + ... +}: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + nixos-hardware.nixosModules.raspberry-pi-4 + ]; + + boot = { + initrd = { + availableKernelModules = [ "xhci_pci" ]; + }; + loader = { + generic-extlinux-compatible.enable = true; + }; + }; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; + + hardware.raspberry-pi."4".fkms-3d.enable = true; + + networking = { + useDHCP = lib.mkDefault true; + }; + + powerManagement.cpuFreqGovernor = "ondemand"; + + services.create_ap = { + enable = true; + settings = { + INTERNET_IFACE = "end0"; + WIFI_IFACE = "wlan0"; + SSID = "Test Network Plese Igonre"; + PASSPHRASE = "VerySecurePassword"; + }; + }; +}