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,
|
2024-12-06 18:04:47 +00:00
|
|
|
namespace,
|
2024-05-16 16:19:04 +00:00
|
|
|
...
|
|
|
|
}:
|
2024-07-06 16:50:45 +00:00
|
|
|
let
|
|
|
|
stateVersion = "24.05";
|
|
|
|
hostName = "Pihole";
|
|
|
|
in
|
2024-05-07 22:02:59 +00:00
|
|
|
{
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-07-06 16:50:45 +00:00
|
|
|
system.stateVersion = stateVersion;
|
2024-09-08 15:58:56 +00:00
|
|
|
networking = {
|
|
|
|
hostName = hostName;
|
|
|
|
|
|
|
|
# Connect to the network automagically
|
|
|
|
networkmanager.enable = lib.mkForce false;
|
2024-12-18 22:59:32 +00:00
|
|
|
wireless = {
|
|
|
|
enable = true;
|
|
|
|
networks = {
|
|
|
|
"${config.${namespace}.secrets.networking.networks.home.SSID}" = {
|
|
|
|
psk = "${config.${namespace}.secrets.networking.networks.home.password}";
|
|
|
|
};
|
2024-09-08 15:58:56 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-12-06 18:04:47 +00:00
|
|
|
${namespace} = {
|
2024-06-24 19:37:10 +00:00
|
|
|
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
|
2024-12-18 21:49:16 +00:00
|
|
|
|
|
|
|
editor = "nano";
|
|
|
|
|
2024-06-24 18:01:51 +00:00
|
|
|
packages = with pkgs; [
|
2024-06-24 18:26:41 +00:00
|
|
|
libraspberrypi
|
|
|
|
raspberrypifw
|
|
|
|
raspberrypi-eeprom
|
|
|
|
linuxKernel.kernels.linux_rpi4
|
|
|
|
];
|
2024-12-18 21:49:16 +00:00
|
|
|
services = {
|
|
|
|
autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
configDir = config.${namespace}.secrets.nixConfigFolder;
|
|
|
|
onCalendar = "daily";
|
|
|
|
user = config.users.users.aires.name;
|
|
|
|
};
|
|
|
|
ssh = {
|
|
|
|
enable = true;
|
|
|
|
ports = [ config.${namespace}.secrets.hosts.hevana.ssh.port ];
|
|
|
|
};
|
|
|
|
tor = {
|
|
|
|
enable = true;
|
|
|
|
snowflake-proxy.enable = true;
|
|
|
|
};
|
2024-05-21 13:22:03 +00:00
|
|
|
};
|
2024-06-24 18:01:51 +00:00
|
|
|
users.aires.enable = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
}
|