modules: add caddy / docker

This commit is contained in:
Donovan Glover 2024-12-20 08:00:51 -05:00
parent ed83941bbe
commit 27ab5dc25a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 28 additions and 0 deletions

18
modules/caddy.nix Normal file
View File

@ -0,0 +1,18 @@
{
services.caddy = {
enable = true;
virtualHosts = {
"https://" = {
extraConfig = # Caddyfile
''
reverse_proxy :3000
tls internal {
on_demand
}
'';
};
};
};
}

10
modules/docker.nix Normal file
View File

@ -0,0 +1,10 @@
{
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
}