feat: flake update workflow (#1)

Co-authored-by: KoenDR06 <koen.de.ruiter@hotmail.com>
Co-committed-by: KoenDR06 <koen.de.ruiter@hotmail.com>
This commit is contained in:
KoenDR06 2026-02-10 18:25:00 +01:00 committed by Koen
parent bdb287e492
commit dfcea20497
3 changed files with 26 additions and 8 deletions

View file

@ -75,11 +75,12 @@ in {
configFile = pkgs.writeText "runner.yml" ''
runner:
labels:
- "self-hosted:host"
- "nixos:host"
'';
in {
environment.systemPackages = with pkgs; [
forgejo-runner
nodejs_24 # Needed for actions/checkout@v4 action
];
users.groups.runner = {};
@ -95,7 +96,10 @@ in {
sleep 10
${pkgs.forgejo-runner}/bin/forgejo-runner daemon --config ${configFile}
'';
serviceConfig.User = "runner";
serviceConfig = {
User = "runner";
Environment = "PATH=$PATH:/run/current-system/sw/bin";
};
wantedBy = ["multi-user.target"];
};