1

System/Thinknix: Add thinknix config

This commit is contained in:
2025-07-10 00:41:05 +02:00
parent a8b4a47cf6
commit 0dfc11363a
7 changed files with 229 additions and 33 deletions

View File

@ -0,0 +1,43 @@
{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.wireguard = {
image = "linuxserver/wireguard:latest";
autoStart = true;
login = {
# Uses DockerHub by default
# registry = "";
# DockerHub Credentials
username = "christoph.urlacher@protonmail.com";
passwordFile = "${config.sops.secrets.docker-password.path}";
};
dependsOn = [];
ports = [
"51820:51820"
];
volumes = [
"wireguard_vps_config:/config"
"wireguard_vps_modules:/lib/modules"
];
environment = {
PUID = "1000";
PGID = "1000";
TZ = "Europe/Berlin";
};
extraOptions = [
"--cap-add=NET_ADMIN"
"--cap-add=SYS_MODULE"
# "--net=behind-nginx"
];
};
}