force runner as root
Some checks failed
Activate NixOS Homelab Configuration On Push / build-and-activate (push) Failing after 28s
Some checks failed
Activate NixOS Homelab Configuration On Push / build-and-activate (push) Failing after 28s
This commit is contained in:
parent
c2512306ac
commit
389b38628e
2 changed files with 4 additions and 1 deletions
|
|
@ -19,6 +19,6 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: nixos-rebuild build --flake ./src#homelab -L --show-trace
|
run: nixos-rebuild build --flake ./src#homelab -L --show-trace
|
||||||
- name: Activate
|
- name: Activate
|
||||||
run: sudo nixos-rebuild switch --flake ./src#homelab -L --show-trace -v
|
run: nixos-rebuild switch --flake ./src#homelab -L --show-trace -v
|
||||||
- name: Clean
|
- name: Clean
|
||||||
run: rm -rfv src
|
run: rm -rfv src
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,9 @@
|
||||||
NoNewPrivileges = lib.mkForce false;
|
NoNewPrivileges = lib.mkForce false;
|
||||||
RestrictSUIDSGID = lib.mkForce false;
|
RestrictSUIDSGID = lib.mkForce false;
|
||||||
PrivateUsers = lib.mkForce false;
|
PrivateUsers = lib.mkForce false;
|
||||||
|
User = lib.mkForce "root";
|
||||||
|
ProtectSystem = lib.mkForce false;
|
||||||
|
ProtectHome = lib.mkForce false;
|
||||||
};
|
};
|
||||||
systemd.services."gitea-runner-nixos-deploy".restartIfChanged = false;
|
systemd.services."gitea-runner-nixos-deploy".restartIfChanged = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue