{ self, nixos-hardware, caddy-with-plugins, ... }: { pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/virtualisation/lxc-container.nix") nixos-hardware.nixosModules.common-cpu-intel ../../users/root ../../users/erwin ./frigate ]; eboskma = { users.erwin = { enable = true; server = true; }; nix-common = { enable = true; remote-builders = true; }; podman.enable = true; tailscale.enable = true; caddy-proxy = { enable = true; package = caddy-with-plugins.packages.${pkgs.system}.caddy-with-cloudflare; proxyHosts = [ { externalHostname = "frigate.datarift.nl"; proxyAddress = "localhost:8971"; } ]; }; }; time.timeZone = "Europe/Amsterdam"; system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev; networking = { hostName = "frigate"; useDHCP = false; useHostResolvConf = false; networkmanager.enable = false; useNetworkd = true; # nftables.enable = true; firewall.trustedInterfaces = [ "tailscale0" ]; }; systemd.network = { enable = true; wait-online.anyInterface = true; networks = { "40-eth0" = { matchConfig = { Name = "eth0"; }; networkConfig = { Address = "10.0.0.205/24"; Gateway = "10.0.0.1"; DNS = "10.0.0.206"; DHCP = "no"; }; }; }; }; security = { sudo-rs = { enable = true; execWheelOnly = true; wheelNeedsPassword = false; }; sudo.enable = false; }; sops.defaultSopsFile = ./secrets.yaml; sops.secrets = { frigate = { }; caddy-env = { }; }; system.stateVersion = "24.05"; }