1
0
Fork 0
nix-configuration/systems/aarch64-linux/Pihole/default.nix
Aires ccb7d21276 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/80b0fdf483c5d1cb75aaad909bd390d48673857f' (2024-12-16)
  → 'github:nix-community/home-manager/613691f285dad87694c2ba1c9e6298d04736292d' (2024-12-28)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/d70bd19e0a38ad4790d3913bf08fcbfc9eeca507' (2024-12-19)
  → 'github:nixos/nixpkgs/634fd46801442d760e09493a794c4f15db2d0cbb' (2024-12-27)
2024-12-28 13:59:20 -05:00

62 lines
1.3 KiB
Nix

{
config,
pkgs,
lib,
namespace,
...
}:
let
stateVersion = "24.05";
hostName = "Pihole";
in
{
imports = [ ./hardware-configuration.nix ];
system.stateVersion = stateVersion;
networking = {
hostName = hostName;
# Connect to the network automagically
networkmanager.enable = lib.mkForce false;
wireless = {
enable = true;
networks = {
"${config.${namespace}.secrets.networking.networks.home.SSID}" = {
psk = "${config.${namespace}.secrets.networking.networks.home.password}";
};
};
};
};
${namespace} = {
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
editor = "nano";
packages = with pkgs; [
libraspberrypi
raspberrypifw
raspberrypi-eeprom
linuxKernel.kernels.linux_rpi4
];
services = {
autoUpgrade = {
enable = true;
extraFlags = "--build-host hevana";
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;
};
};
users.aires.enable = true;
};
}