{ config, pkgs, ... }: let pubKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbj3DNho0T/SLcuKPzxT2/r8QNdEQ/ms6tRiX6YraJk root@tal.tapenet.org" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIPMaAm4rDxyU975Z54YiNw3itC2fGc3SaE2VaS1fai8 root@box" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIITjFpmWZVWixv2i9902R+g5B8umVhaqmjYEKs2nF3Lu qbit@tal.tapenet.org" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILnaC1v+VoVNnK04D32H+euiCyWPXU8nX6w+4UoFfjA3 qbit@plq" ]; userBase = { openssh.authorizedKeys.keys = pubKeys; }; in { _module.args.isUnstable = false; imports = [ ./hardware-configuration.nix ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.supportedFilesystems = [ "zfs" ]; boot.zfs.devNodes = "/dev/"; networking.hostName = "faf"; networking.hostId = "12963a2a"; networking.useDHCP = false; networking.interfaces.enp1s0.useDHCP = true; networking.interfaces.enp2s0.useDHCP = true; networking.firewall.allowedTCPPorts = [ 22 53 ]; networking.firewall.allowedUDPPorts = [ 53 ]; users.users.root = userBase; users.users.qbit = userBase; services = { adguardhome = { enable = false; port = 3000; openFirewall = true; settings = { user_rules = [ "# Stuff from kyle" "# some google stuff that wasn't being blocked" "||googleadservices.com^" "||imasdk.googleapis.com^" "# some advertising stuff I saw on my network" "||adjust.com^" "||appsflyer.com^" "||doubleclick.net^" "||googleadservices.com^" "||raygun.io^" "||pizzaseo.com^" "||scorecardresearch.com^" "# annoying website 'features'" "||drift.com^" "||driftcdn.com^" "||driftt.com^" "||driftt.imgix.net^" "||intercomcdn.com^" "||intercom.io^" "||salesforceliveagent.com^" "||viafoura.co^" "||viafoura.com^" ]; filters = [ { name = "AdGuard DNS filter"; url = "https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt"; enabled = true; } { name = "AdaAway Default Blocklist"; url = "https://adaway.org/hosts.txt"; enabled = true; } { name = "OISD"; url = "https://abp.oisd.nl"; enabled = true; } ]; dns = { statistics_interval = 90; bind_host = "10.6.0.245"; bootstrap_dns = "10.6.0.1"; }; }; }; unbound = { enable = true; settings = { server = { interface = [ "100.64.130.122" ]; access-control = [ "100.64.0.0/10 allow" ]; }; local-zone = ''"bold.daemon." static''; local-data = [ ''"reddit.bold.daemon. IN A 100.120.151.126"'' ''"jelly.bold.daemon. IN A 100.120.151.126"'' ''"sonarr.bold.daemon. IN A 100.120.151.126"'' ''"radarr.bold.daemon. IN A 100.120.151.126"'' ''"prowlarr.bold.daemon. IN A 100.120.151.126"'' ''"headphones.bold.daemon. IN A 100.120.151.126"'' ''"lidarr.bold.daemon. IN A 100.120.151.126"'' ''"nzb.bold.daemon. IN A 100.120.151.126"'' ]; }; }; }; system.stateVersion = "21.11"; # Did you read the comment? }