2024-05-16 12:19:04 -04:00
|
|
|
{
|
2024-05-21 12:15:23 -04:00
|
|
|
config,
|
2024-05-16 12:19:04 -04:00
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-07-06 12:50:45 -04:00
|
|
|
let
|
|
|
|
stateVersion = "24.05";
|
|
|
|
hostName = "Pihole";
|
|
|
|
in
|
2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-07-06 12:50:45 -04:00
|
|
|
system.stateVersion = stateVersion;
|
2024-09-08 11:58:56 -04:00
|
|
|
networking = {
|
|
|
|
hostName = hostName;
|
|
|
|
|
|
|
|
# Connect to the network automagically
|
|
|
|
networkmanager.enable = lib.mkForce false;
|
|
|
|
wireless.networks = {
|
|
|
|
"${config.secrets.networking.networks.home.SSID}" = {
|
|
|
|
psk = "${config.secrets.networking.networks.home.password}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-06-24 11:38:28 -04:00
|
|
|
aux.system = {
|
2024-06-24 15:37:10 -04:00
|
|
|
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
|
2024-06-24 14:01:51 -04:00
|
|
|
packages = with pkgs; [
|
2024-06-24 14:26:41 -04:00
|
|
|
libraspberrypi
|
|
|
|
raspberrypifw
|
|
|
|
raspberrypi-eeprom
|
|
|
|
linuxKernel.kernels.linux_rpi4
|
|
|
|
];
|
2024-05-21 09:22:03 -04:00
|
|
|
services.ssh = {
|
|
|
|
enable = true;
|
2024-07-11 12:50:48 -04:00
|
|
|
ports = [ config.secrets.hosts.dimaga.ssh.port ];
|
2024-05-21 09:22:03 -04:00
|
|
|
};
|
2024-06-24 14:01:51 -04:00
|
|
|
users.aires.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-21 12:15:23 -04:00
|
|
|
nix.distributedBuilds = true;
|
2024-02-29 09:53:34 -05:00
|
|
|
}
|