nix-config/hosts/pc/services.nix
2026-05-18 21:36:22 +02:00

42 lines
796 B
Nix

{
inputs,
outputs,
config,
...
}:
{
imports = [
inputs.synix.nixosModules.openssh
outputs.nixosModules.forgejo-runner
outputs.nixosModules.syncthing
];
services.openssh.enable = true;
services.forgejo-runner = {
enable = true;
url = "https://git.sid.ovh";
tokenFile = config.sops.templates."forgejo-runner/token".path;
label = "runner";
};
services.journald.remote = {
enable = true;
listen = "http";
port = 19532;
settings.Remote.SplitMode = "host";
};
users.users.sid.extraGroups = [
"systemd-journal"
"systemd-journal-remote"
];
sops = {
secrets."forgejo-runner/token" = { };
templates."forgejo-runner/token".content = ''
TOKEN=${config.sops.placeholder."forgejo-runner/token"}
'';
};
}