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