Compare commits

..

No commits in common. "81a70b3bb7fb01662fe8f9365b76853f545bedca" and "1564249a3d5a6b82e027b2a796ba3acb6f273dad" have entirely different histories.

5 changed files with 13 additions and 47 deletions

View file

@ -1,27 +0,0 @@
{ ... }: let
stacks-dir = "/opt/stacks";
in {
virtualisation = {
oci-containers.backend = "docker";
docker = {
enable = true;
autoPrune.enable = true;
};
};
virtualisation.oci-containers.containers."dockge" = {
image = "louislam/dockge:latest";
environment = {
"DOCKGE_STACKS_DIR" = stacks-dir;
};
volumes = [
"${stacks-dir}:${stacks-dir}:rw"
"/root/dockge:/app/data:rw"
"/var/run/docker.sock:/var/run/docker.sock:rw"
];
ports = [
"127.0.0.1:5001:5001/tcp"
];
log-driver = "journald";
};
}

View file

@ -57,7 +57,6 @@
[ "AdGuardHome" "adguard" "https://dns.proxy.${homelab.domain}" "http://localhost:8088/" ] [ "AdGuardHome" "adguard" "https://dns.proxy.${homelab.domain}" "http://localhost:8088/" ]
[ "ApacheHTTPD" "apache" "https://cdn.proxy.${homelab.domain}" "http://localhost:3000/" ] [ "ApacheHTTPD" "apache" "https://cdn.proxy.${homelab.domain}" "http://localhost:3000/" ]
[ "Forgejo" "forgejo" "https://git.proxy.${homelab.domain}" "http://localhost:5080/" ] [ "Forgejo" "forgejo" "https://git.proxy.${homelab.domain}" "http://localhost:5080/" ]
[ "Dockge" "docker" "https://containers.proxy.${homelab.domain}" "http://localhost:5001/" ]
]; ];
bookmarks = [ bookmarks = [
[ "Tailscale" "tailscale" "https://login.tailscale.com/" ] [ "Tailscale" "tailscale" "https://login.tailscale.com/" ]

View file

@ -1,4 +1,4 @@
{ lib, homelab, ... }: let { homelab, ... }: let
rewrites = [ rewrites = [
[ "router.dns.${homelab.domain}" "10.3.14.1" ] [ "router.dns.${homelab.domain}" "10.3.14.1" ]
[ "main.dns.${homelab.domain}" "10.3.14.42" ] [ "main.dns.${homelab.domain}" "10.3.14.42" ]
@ -59,19 +59,10 @@ in {
rewrites_enabled = true; rewrites_enabled = true;
filtering_enabled = true; filtering_enabled = true;
safe_search.enabled = true; safe_search.enabled = true;
rewrites = map (e: { rewrites = map (e: { enabled = true; domain = builtins.elemAt e 0; answer = builtins.elemAt e 1; }) rewrites;
enabled = true;
domain = builtins.elemAt e 0;
answer = builtins.elemAt e 1;
}) rewrites;
}; };
filters = map (url: { enabled = true; url = url; }) blacklist; filters = map (url: { enabled = true; url = url; }) blacklist;
whitelist_filters = map (url: { enabled = true; url = url; }) whitelist; whitelist_filters = map (url: { enabled = true; url = url; }) whitelist;
}; };
}; };
networking = {
networkmanager.dns = "none";
nameservers = lib.mkForce [ "127.0.0.1" ];
};
} }

View file

@ -1,10 +1,9 @@
{ homelab, lib, ... }: let { homelab, lib, ... }: let
base = "proxy.${homelab.domain}"; base = "proxy.${homelab.domain}";
proxyMappings = { proxyMappings = {
"containers" = { dest = "http://localhost:5001"; auth = false; };
"auth" = { dest = "http://localhost:1411"; auth = false; };
"dns" = { dest = "http://localhost:8088"; auth = true; }; "dns" = { dest = "http://localhost:8088"; auth = true; };
"cdn" = { dest = "http://localhost:3000"; auth = false; }; "cdn" = { dest = "http://localhost:3000"; auth = false; };
"auth" = { dest = "http://localhost:1411"; auth = false; };
"git" = { dest = "http://localhost:5080"; auth = false; }; "git" = { dest = "http://localhost:5080"; auth = false; };
"@" = { dest = "http://localhost:5070"; auth = false; }; "@" = { dest = "http://localhost:5070"; auth = false; };
}; };

View file

@ -1,6 +1,5 @@
{ ... }: { { lib, ... }: {
imports = [ imports = [
./homelab/containers.nix
./homelab/share.nix ./homelab/share.nix
./homelab/proxy.nix ./homelab/proxy.nix
./homelab/dash.nix ./homelab/dash.nix
@ -9,4 +8,9 @@
./homelab/idp.nix ./homelab/idp.nix
./base.nix ./base.nix
]; ];
networking = {
networkmanager.dns = "none";
nameservers = lib.mkForce [ "127.0.0.1" ];
};
} }