playbook base initial skeleton

This commit is contained in:
m3tam3re
2025-03-12 14:28:01 +01:00
commit b97263495b
14 changed files with 471 additions and 0 deletions

28
services/core/default.nix Normal file
View File

@@ -0,0 +1,28 @@
{
imports = [
./baserow
./n8n
./portainer
];
virtualisation.oci-containers.backend = "docker";
systemd.services.docker-network-web = {
description = "Create Docker Network Web";
requires = ["docker.service"];
after = ["docker.service"];
wantedBy = ["multi-user.target"];
# Run on startup if network doesn't exist
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
script = ''
if ! /run/current-system/sw/bin/docker network ls | grep -q 'web'; then
/run/current-system/sw/bin/docker network create web
fi
'';
};
}