add accese point

This commit is contained in:
jopejoe1 2024-04-27 18:01:07 +02:00
parent ad48fb07d4
commit 563092b3d4
2 changed files with 46 additions and 0 deletions

View file

@ -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";
}

45
systems/pi4-2/default.nix Normal file
View file

@ -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";
};
};
}