Initial commit

This commit is contained in:
Shawn Borton 2026-06-21 01:36:08 -05:00
commit a4db9c8516
36 changed files with 15659 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ config, lib, pkgs, ... }:
{
users.users.nebula = {
isSystemUser = true;
group = "podman";
home = "/var/lib/nebula";
linger = false;
createHome = true;
autoSubUidGidRange = true;
};
sops = {
secrets = {
nebula-sync-env = {
sopsFile = ../secrets/nebula-sync.env;
format = "dotenv";
owner = config.users.users.nebula.name;
};
};
};
virtualisation.oci-containers.containers.nebula-sync = {
autoRemoveOnStop = false;
autoStart = false;
image = "ghcr.io/lovelaze/nebula-sync:0.11.2";
environment = {
FULL_SYNC = "false";
RUN_GRAVITY = "true";
CRON = "23 * * * *";
CLIENT_SKIP_TLS_VERIFICATION = "true";
};
environmentFiles = [ config.sops.secrets.nebula-sync-env.path ];
podman = { user = "nebula"; };
log-driver = "journald";
};
}