workflow verbosity and sudo fix
Some checks failed
Activate NixOS Homelab Configuration On Push / build-and-activate (push) Failing after 29s
Some checks failed
Activate NixOS Homelab Configuration On Push / build-and-activate (push) Failing after 29s
This commit is contained in:
parent
0bfffe7acb
commit
6024695830
2 changed files with 11 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, homelab, ... }: {
|
||||
{ lib, pkgs, homelab, ... }: {
|
||||
security.sudo.extraRules = [{ # for configuration activation on push to git
|
||||
users = [ "gitea-runner" ];
|
||||
commands = [{
|
||||
|
|
@ -63,4 +63,10 @@
|
|||
hostPackages = with pkgs; [ bash coreutils git nix nodejs ];
|
||||
};
|
||||
};
|
||||
systemd.services."gitea-runner-nixos-deploy".serviceConfig = {
|
||||
# Force systemd to allow privilege escalation (sudo) for this service
|
||||
NoNewPrivileges = lib.mkForce false;
|
||||
RestrictSUIDSGID = lib.mkForce false;
|
||||
PrivateUsers = lib.mkForce false;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue