1
0
Fork 0

Pihole: update config

This commit is contained in:
Aires 2024-12-18 21:49:16 +00:00
parent fb70913b68
commit 3549e9624a
2 changed files with 18 additions and 6 deletions

View file

@ -28,9 +28,6 @@ in
config = lib.mkMerge [ config = lib.mkMerge [
{ {
nix = { nix = {
# Use Lix in place of Nix
package = inputs.lix.packages.${system}.default;
# Ensure we can still build when secondary caches are unavailable # Ensure we can still build when secondary caches are unavailable
extraOptions = '' extraOptions = ''
fallback = true fallback = true

View file

@ -27,15 +27,30 @@ in
${namespace} = { ${namespace} = {
bootloader.enable = false; # Bootloader configured in hardware-configuration.nix bootloader.enable = false; # Bootloader configured in hardware-configuration.nix
editor = "nano";
packages = with pkgs; [ packages = with pkgs; [
libraspberrypi libraspberrypi
raspberrypifw raspberrypifw
raspberrypi-eeprom raspberrypi-eeprom
linuxKernel.kernels.linux_rpi4 linuxKernel.kernels.linux_rpi4
]; ];
services.ssh = { services = {
enable = true; autoUpgrade = {
ports = [ config.${namespace}.secrets.hosts.hevana.ssh.port ]; 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;
};
}; };
users.aires.enable = true; users.aires.enable = true;
}; };