1
0
Fork 0
nix-configuration/hosts/Pihole/default.nix

44 lines
924 B
Nix
Raw Normal View History

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,
nix-secrets,
...
}:
{
imports = [ ./hardware-configuration.nix ];
2024-02-29 09:53:34 -05:00
system.stateVersion = "24.05";
2024-02-29 09:53:34 -05:00
aux.system = {
apps.tmux.enable = true;
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
];
services.ssh = {
enable = true;
2024-05-21 12:15:23 -04:00
ports = [ config.secrets.hosts.haven.ssh.port ];
};
2024-06-24 14:01:51 -04:00
users.aires.enable = true;
};
2024-02-29 09:53:34 -05:00
2024-05-21 12:15:23 -04:00
nix.distributedBuilds = true;
time.timeZone = "America/New_York";
2024-02-29 09:53:34 -05:00
# Connect to the network automagically
2024-05-16 12:19:04 -04:00
networking = {
2024-06-24 14:01:51 -04:00
hostName = "Pihole";
2024-05-16 12:19:04 -04:00
networkmanager.enable = lib.mkForce false;
wireless.networks = {
2024-05-21 12:15:23 -04:00
"${config.secrets.networking.networks.home.SSID}" = {
psk = "${config.secrets.networking.networks.home.password}";
2024-05-16 12:19:04 -04:00
};
};
};
2024-02-29 09:53:34 -05:00
}