Compare commits

...

2 commits

Author SHA1 Message Date
aa3df76cf9 minimal boilerplate 2026-03-02 21:52:52 +07:00
4bf14275e7 minor tweaks 2026-03-02 21:51:09 +07:00
6 changed files with 32 additions and 21 deletions

View file

@ -0,0 +1,3 @@
{ ... }: {
}

View file

@ -1,14 +1,6 @@
{ lib, ... }: let { lib, ... }: let
stacks-dir = "/opt/stacks"; stacks-dir = "/opt/stacks";
in { in {
virtualisation = {
oci-containers.backend = "docker";
docker = {
enable = true;
autoPrune.enable = true;
};
};
virtualisation.oci-containers.containers."dockge" = { virtualisation.oci-containers.containers."dockge" = {
image = "louislam/dockge:latest"; image = "louislam/dockge:latest";
environment = { environment = {

View file

@ -1,16 +1,14 @@
{ 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" ]
[ "websites.dns.${homelab.domain}" "10.3.14.36" ]
[ "games.dns.${homelab.domain}" "10.3.14.37" ]
[ "media.dns.${homelab.domain}" "10.3.14.55" ]
[ "workspace.dns.${homelab.domain}" "10.3.14.57" ] [ "workspace.dns.${homelab.domain}" "10.3.14.57" ]
[ "server.dns.${homelab.domain}" "10.3.14.69" ] [ "server.dns.${homelab.domain}" "10.3.14.69" ]
[ "home.dns.${homelab.domain}" "10.3.14.235" ] [ "home.dns.${homelab.domain}" "10.3.14.235" ]
[ "nas.dns.${homelab.domain}" "10.3.14.217" ]
[ "proxy.${homelab.domain}" "10.3.14.215" ] [ "main.dns.${homelab.domain}" "10.3.14.215" ] # this machine
[ "proxy.${homelab.domain}" "main.dns.${homelab.domain}" ]
[ "*.proxy.${homelab.domain}" "proxy.${homelab.domain}" ] [ "*.proxy.${homelab.domain}" "proxy.${homelab.domain}" ]
[ "lancache.steamcontent.com" "main.dns.${homelab.domain}" ] [ "lancache.steamcontent.com" "main.dns.${homelab.domain}" ]
[ "steam.cache.lancache.net" "main.dns.${homelab.domain}" ] [ "steam.cache.lancache.net" "main.dns.${homelab.domain}" ]
]; ];
@ -69,9 +67,4 @@ in {
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

@ -0,0 +1,3 @@
{ ... }: {
}

View file

@ -0,0 +1,3 @@
{ ... }: {
}

View file

@ -1,12 +1,29 @@
{ ... }: { { lib, ... }: {
imports = [ imports = [
./homelab/containers.nix ./homelab/containers.nix
./homelab/movies.nix
./homelab/photos.nix
./homelab/share.nix ./homelab/share.nix
./homelab/proxy.nix ./homelab/proxy.nix
./homelab/auth.nix ./homelab/auth.nix
./homelab/dash.nix ./homelab/dash.nix
./homelab/dns.nix ./homelab/dns.nix
./homelab/git.nix ./homelab/git.nix
./homelab/ai.nix
./base.nix ./base.nix
]; ];
virtualisation = {
oci-containers.backend = "docker";
docker = {
enable = true;
autoPrune.enable = true;
enableOnBoot = true;
};
};
networking = {
networkmanager.dns = "none";
nameservers = lib.mkForce [ "127.0.0.1" ];
};
} }