mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-10 23:09:19 +01:00
modules: add caddy / docker
This commit is contained in:
parent
ed83941bbe
commit
27ab5dc25a
18
modules/caddy.nix
Normal file
18
modules/caddy.nix
Normal 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
10
modules/docker.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user