minor tweaks
This commit is contained in:
parent
914885b870
commit
4bf14275e7
3 changed files with 23 additions and 21 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue