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:
parent
bdb287e492
commit
dfcea20497
3 changed files with 26 additions and 8 deletions
|
|
@ -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"];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue