Fixing networks arion
All checks were successful
Nix Build / build-nixos (push) Successful in 6m8s

This commit is contained in:
soraefir 2024-04-21 13:27:56 +02:00
parent 0f4154bcb5
commit a8c74cba69
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
4 changed files with 20 additions and 10 deletions

View File

@ -10,7 +10,11 @@
enable = true; enable = true;
dockerSocket.enable = true; dockerSocket.enable = true;
dockerCompat = true; dockerCompat = true;
defaultNetwork.settings.dnsname.enable = true; defaultNetwork.settings = {
dnsname.enable = true;
internal = true;
name = "internal";
};
}; };
}; };
}; };

View File

@ -1,13 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let let
in { in {
environment.systemPackages = with pkgs; [ arion ]; environment.systemPackages = with pkgs; [ arion ];
virtualisation.arion = { virtualisation.arion = {
backend = "podman-socket"; backend = "podman-socket";
projects = { projects = {
cloud.settings = import ./docker/cloud.nix { inherit config pkgs; }; cloud.settings = import ./docker/cloud.nix { inherit config pkgs lib; };
authentik.settings = authentik.settings =
import ./docker/authentik.nix { inherit config pkgs; }; import ./docker/authentik.nix { inherit config pkgs lib; };
}; };
}; };
} }

View File

@ -1,14 +1,17 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let serverCfg = config.syscfg.server; let serverCfg = config.syscfg.server;
in { in {
project.name = "authentik"; project.name = "authentik";
networks = { networks = {
internal = { internal = {
name = lib.mkForce "internal";
internal = true; internal = true;
external = false;
}; };
external = { external = true; }; external = {
name = lib.mkForce "external";
internal = false;
};
}; };
services = { services = {

View File

@ -1,14 +1,17 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let serverCfg = config.syscfg.server; let serverCfg = config.syscfg.server;
in { in {
project.name = "cloud"; project.name = "cloud";
networks = { networks = {
internal = { internal = {
name = lib.mkForce "internal";
internal = true; internal = true;
external = false;
}; };
external = { external = true; }; external = {
name = lib.mkForce "external";
internal = false;
};
}; };
services = { services = {