From 4bf14275e7f55a694e23d6de7de7ab3aaf812dcc Mon Sep 17 00:00:00 2001 From: Satria Date: Mon, 2 Mar 2026 21:51:09 +0700 Subject: [PATCH] minor tweaks --- modules/system/homelab/containers.nix | 8 -------- modules/system/homelab/dns.nix | 17 +++++------------ modules/system/server.nix | 19 ++++++++++++++++++- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/modules/system/homelab/containers.nix b/modules/system/homelab/containers.nix index 08a341e..0f22798 100644 --- a/modules/system/homelab/containers.nix +++ b/modules/system/homelab/containers.nix @@ -1,14 +1,6 @@ { lib, ... }: 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 = { diff --git a/modules/system/homelab/dns.nix b/modules/system/homelab/dns.nix index b9bde88..a004b47 100644 --- a/modules/system/homelab/dns.nix +++ b/modules/system/homelab/dns.nix @@ -1,16 +1,14 @@ -{ lib, homelab, ... }: let +{ homelab, ... }: let rewrites = [ [ "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" ] [ "server.dns.${homelab.domain}" "10.3.14.69" ] [ "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}" ] + [ "lancache.steamcontent.com" "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; }; }; - - networking = { - networkmanager.dns = "none"; - nameservers = lib.mkForce [ "127.0.0.1" ]; - }; } \ No newline at end of file diff --git a/modules/system/server.nix b/modules/system/server.nix index 6f87154..8dcda6e 100644 --- a/modules/system/server.nix +++ b/modules/system/server.nix @@ -1,12 +1,29 @@ -{ ... }: { +{ lib, ... }: { imports = [ ./homelab/containers.nix + ./homelab/movies.nix + ./homelab/photos.nix ./homelab/share.nix ./homelab/proxy.nix ./homelab/auth.nix ./homelab/dash.nix ./homelab/dns.nix ./homelab/git.nix + ./homelab/ai.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" ]; + }; } \ No newline at end of file