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

45 lines
880 B
Nix
Raw Normal View History

2024-05-16 16:19:04 +00:00
{
2024-05-21 16:15:23 +00:00
config,
2024-05-16 16:19:04 +00:00
pkgs,
lib,
nix-secrets,
...
}:
{
imports = [ ./hardware-configuration.nix ];
2024-02-29 14:53:34 +00:00
system.stateVersion = "24.05";
2024-02-29 14:53:34 +00:00
aux.system = {
apps.tmux.enable = true;
users.aires.enable = true;
boot.enable = false;
services.ssh = {
enable = true;
2024-05-21 16:15:23 +00:00
ports = [ config.secrets.hosts.haven.ssh.port ];
};
};
2024-02-29 14:53:34 +00:00
2024-05-21 16:15:23 +00:00
nix.distributedBuilds = true;
networking.hostName = "Pihole";
time.timeZone = "America/New_York";
2024-02-29 14:53:34 +00:00
environment.systemPackages = with pkgs; [
libraspberrypi
raspberrypifw
raspberrypi-eeprom
linuxKernel.kernels.linux_rpi4
];
2024-02-29 14:53:34 +00:00
# Connect to the network automagically
2024-05-16 16:19:04 +00:00
networking = {
networkmanager.enable = lib.mkForce false;
wireless.networks = {
2024-05-21 16:15:23 +00:00
"${config.secrets.networking.networks.home.SSID}" = {
psk = "${config.secrets.networking.networks.home.password}";
2024-05-16 16:19:04 +00:00
};
};
};
2024-02-29 14:53:34 +00:00
}