35 lines
634 B
Nix
35 lines
634 B
Nix
{
|
|
den,
|
|
__findFile,
|
|
modules,
|
|
...
|
|
}:
|
|
{
|
|
den.aspects.rpi5 = {
|
|
includes = [
|
|
<modules/raspberry-pi/5>
|
|
<modules/services/traefik>
|
|
<modules/services/home-assistant>
|
|
];
|
|
nixos = {
|
|
networking.hostName = "nixos-001-rp5";
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [
|
|
80
|
|
443
|
|
8080
|
|
];
|
|
allowedUDPPortRanges = [ ];
|
|
};
|
|
|
|
virtualisation.docker.enable = true;
|
|
virtualisation.oci-containers.backend = "docker";
|
|
|
|
services.openssh.enable = true;
|
|
nixpkgs.hostPlatform = "aarch64-linux";
|
|
};
|
|
};
|
|
}
|