Desktop changes
This commit is contained in:
23
modules/containers/adguard.nix
Normal file
23
modules/containers/adguard.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
adguardhome = {
|
||||
image = "docker.io/adguard/adguardhome";
|
||||
autoStart = true;
|
||||
ports = [
|
||||
"192.168.100.107:53:53/udp"
|
||||
"81:3000/tcp"
|
||||
];
|
||||
volumes = [
|
||||
"workdir:/opt/adguardhome/work"
|
||||
"confdir:/opt/adguardhome/conf"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 81 53 ];
|
||||
allowedUDPPorts = [ 53 ];
|
||||
};
|
||||
}
|
16
modules/containers/caddy.nix
Normal file
16
modules/containers/caddy.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.dockerTools.buildImage {
|
||||
name = "caddy-custom";
|
||||
tag = "latest";
|
||||
|
||||
fromImage = "docker.io/caddy";
|
||||
fromImageName = null;
|
||||
fromImageTag = "2.8.4-builder";
|
||||
|
||||
runAsRoot = ''
|
||||
#!${pkgs.runtimeShell}
|
||||
|
||||
xcaddy build --with github.com/caddy-dns/cloudflare
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user