This commit is contained in:
mjallen18
2025-11-14 10:47:49 -06:00
parent 582561ae12
commit 0e93ea159f
7 changed files with 504 additions and 257 deletions

View File

@@ -107,13 +107,13 @@ in
address = "10.0.1.3/24";
method = "manual";
gateway = "10.0.1.1";
interface = "wlp6s0";
interface = "enp197s0";
};
hostId = "4b501480";
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "wlp6s0";
externalInterface = "enp197s0";
enableIPv6 = true;
};
firewall = {
@@ -142,7 +142,7 @@ in
2283 # immich
4444 # code-server
9012
9988
8192
3000
2222

View File

@@ -28,6 +28,7 @@
ensureDatabases = [
"authentik"
"homeassistant"
"nextcloud"
];
ensureUsers = [
{
@@ -38,12 +39,19 @@
name = "homeassistant";
ensureDBOwnership = true;
}
{
name = "nextcloud";
ensureDBOwnership = true;
}
];
# Allow access via pg_hba.conf rules:
authentication = pkgs.lib.mkOverride 50 ''
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
host homeassistant homeassistant 10.0.1.0/24 trust
local nextcloud nextcloud trust
host nextcloud nextcloud 10.0.1.0/24 trust
host nextcloud nextcloud ::1/128 trust
'';
};