environment
This commit is contained in:
@@ -338,21 +338,16 @@
|
|||||||
PrivateMounts = false;
|
PrivateMounts = false;
|
||||||
PrivateUsers = false;
|
PrivateUsers = false;
|
||||||
ProtectHome = false;
|
ProtectHome = false;
|
||||||
NoNewPrivileges = false; # Add this
|
NoNewPrivileges = false;
|
||||||
|
|
||||||
# Ensure access to Nix store and system paths
|
# Make sure the service can see /nix/store
|
||||||
BindReadOnlyPaths = [
|
BindReadOnlyPaths = [
|
||||||
"/nix/store"
|
"/nix/store"
|
||||||
"/run/current-system"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Set proper PATH
|
|
||||||
Environment = [
|
|
||||||
"PATH=/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/bin:/bin"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
Restart = lib.mkForce "always";
|
Restart = lib.mkForce "always";
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.gitea-runner = {
|
users.users.gitea-runner = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Gitea Actions Runner";
|
description = "Gitea Actions Runner";
|
||||||
|
|||||||
Reference in New Issue
Block a user