Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
This is a dns issue where if we dont explicitly disable it then it conflicts with the 53 port from the pihole container and we can't ssh into the device anymore
39 lines
828 B
Nix
39 lines
828 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
device,
|
|
lib,
|
|
...
|
|
}: {
|
|
networking.hostName = device.name;
|
|
networking.firewall.logRefusedConnections = lib.mkDefault false;
|
|
networking.useNetworkd = true;
|
|
systemd.services.NetworkManager-wait-online.enable = false;
|
|
systemd.network.wait-online.enable = false;
|
|
|
|
fileSystems."/home".neededForBoot = true;
|
|
boot.loader.raspberry-pi.bootloader = "kernel";
|
|
|
|
system.nixos.tags = let
|
|
cfg = config.boot.loader.raspberry-pi;
|
|
in [
|
|
"raspberry-pi-${cfg.variant}"
|
|
cfg.bootloader
|
|
config.boot.kernelPackages.kernel.version
|
|
];
|
|
|
|
# hardware.raspberry-pi.config = {
|
|
# all = {
|
|
# "dtparam" = [
|
|
# "pciex1"
|
|
# "pciex1_gen=2"
|
|
# ];
|
|
# };
|
|
# };
|
|
hardware.raspberry-pi.extra-config = ''
|
|
[all]
|
|
dtparam=pciex1_gen=2
|
|
os_prefix=nixos/default/
|
|
'';
|
|
}
|