2023-09-06 16:56:20 +02:00
|
|
|
{ self, ... }:
|
2023-11-30 09:00:20 +01:00
|
|
|
{ modulesPath, pkgs, lib, ... }: {
|
2023-09-06 16:56:20 +02:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
|
|
|
users.erwin = {
|
|
|
|
enable = true;
|
|
|
|
server = true;
|
|
|
|
};
|
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
|
|
|
remote-builders = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.unifi = {
|
|
|
|
enable = true;
|
2023-11-30 09:00:20 +01:00
|
|
|
unifiPackage = pkgs.unifi;
|
|
|
|
# unifiPackage = pkgs.unifi.overrideAttrs (_oldAttrs: {
|
|
|
|
# version = "7.5.176";
|
|
|
|
# src = builtins.fetchurl {
|
|
|
|
# url = "https://dl.ubnt.com/unifi/7.5.176-1136930355/unifi_sysvinit_all.deb";
|
|
|
|
# sha256 = "prsFq09zYrB74p/MGKjwvZftw78k9wbIva5xFdk+Ztw=";
|
|
|
|
# };
|
|
|
|
# });
|
2023-09-06 16:56:20 +02:00
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
allowPing = true;
|
|
|
|
trustedInterfaces = [ "tailscale0" ];
|
|
|
|
allowedTCPPorts = [ 8443 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.isContainer = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
|
|
|
|
|
|
proxmoxLXC = {
|
|
|
|
privileged = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
|
|
|
|
security.sudo.execWheelOnly = true;
|
|
|
|
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
sops.secrets = { };
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|