2023-08-10 16:43:46 +02:00
|
|
|
{ self, caddy-with-plugins, ... }:
|
|
|
|
{ modulesPath, pkgs, ... }: {
|
2022-01-24 11:14:34 +01:00
|
|
|
imports = [
|
2023-05-23 17:12:31 +02:00
|
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
2022-01-24 11:14:34 +01:00
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
2023-05-10 15:13:50 +02:00
|
|
|
users.erwin = {
|
|
|
|
enable = true;
|
|
|
|
server = true;
|
|
|
|
};
|
2022-08-07 11:24:24 +02:00
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
2022-08-14 16:38:25 +02:00
|
|
|
remote-builders = true;
|
2022-08-07 11:24:24 +02:00
|
|
|
};
|
2023-08-10 16:43:46 +02:00
|
|
|
nginx-proxy-manager.enable = false;
|
|
|
|
caddy-proxy = {
|
|
|
|
enable = true;
|
|
|
|
package = caddy-with-plugins.lib.caddyWithPackages {
|
|
|
|
inherit (pkgs) caddy buildGoModule;
|
|
|
|
plugins = [ "github.com/caddy-dns/cloudflare@74f004e1c1ab9056288f0baf3cd4b0039d6c77f3" ];
|
|
|
|
vendorSha256 = "juhzEaAv3s8KAcyloSNotAddOqgMBqjOcTkbA15Gj/U=";
|
|
|
|
};
|
|
|
|
};
|
2022-01-24 11:14:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
boot.isContainer = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
system.configurationRevision = self.inputs.nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
|
|
|
2023-05-23 17:12:31 +02:00
|
|
|
# networking = {
|
|
|
|
# hostName = "proxy";
|
|
|
|
# useDHCP = false;
|
|
|
|
|
|
|
|
# interfaces = {
|
|
|
|
# eth0 = {
|
|
|
|
# ipv4.addresses = [
|
|
|
|
# {
|
|
|
|
# address = "10.0.0.251";
|
|
|
|
# prefixLength = 24;
|
|
|
|
# }
|
|
|
|
# ];
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
|
|
|
# defaultGateway = "10.0.0.1";
|
|
|
|
# nameservers = [ "10.0.0.254" ];
|
|
|
|
# };
|
|
|
|
|
|
|
|
proxmoxLXC = {
|
|
|
|
privileged = true;
|
2022-01-24 11:14:34 +01:00
|
|
|
};
|
|
|
|
|
2023-05-23 17:12:31 +02:00
|
|
|
services.tailscale.enable = true;
|
2022-01-24 11:14:34 +01:00
|
|
|
|
2023-01-31 17:00:01 +01:00
|
|
|
security.sudo.execWheelOnly = true;
|
|
|
|
|
2022-01-24 11:14:34 +01:00
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
2023-08-10 16:43:46 +02:00
|
|
|
sops.secrets = {
|
|
|
|
caddy-env = { };
|
|
|
|
};
|
2022-01-24 11:14:34 +01:00
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|