add accese point
This commit is contained in:
parent
ad48fb07d4
commit
563092b3d4
2 changed files with 46 additions and 0 deletions
|
@ -43,4 +43,5 @@ in
|
||||||
{
|
{
|
||||||
pi400 = mkSystem "aarch64-unknown-linux-gnu" "pi400";
|
pi400 = mkSystem "aarch64-unknown-linux-gnu" "pi400";
|
||||||
pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4";
|
pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4";
|
||||||
|
pi4-2 = mkSystem "aarch64-unknown-linux-gnu" "pi4-2";
|
||||||
}
|
}
|
||||||
|
|
45
systems/pi4-2/default.nix
Normal file
45
systems/pi4-2/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue