environment
This commit is contained in:
@@ -329,21 +329,27 @@
|
|||||||
"/data/runner"
|
"/data/runner"
|
||||||
"/home/github/infrastructure"
|
"/home/github/infrastructure"
|
||||||
];
|
];
|
||||||
|
|
||||||
PrivateDevices = false;
|
PrivateDevices = false;
|
||||||
DeviceAllow = [ "/dev/zfs rw" ];
|
DeviceAllow = [ "/dev/zfs rw" ];
|
||||||
|
|
||||||
ProtectProc = "default";
|
ProtectProc = "default";
|
||||||
ProtectSystem = false;
|
ProtectSystem = false;
|
||||||
PrivateMounts = false;
|
PrivateMounts = false;
|
||||||
PrivateUsers = false;
|
PrivateUsers = false;
|
||||||
ProtectHome = false;
|
ProtectHome = false;
|
||||||
|
NoNewPrivileges = false; # Add this
|
||||||
Restart = lib.mkForce "always";
|
|
||||||
|
# Ensure access to Nix store and system paths
|
||||||
Environment = [
|
BindReadOnlyPaths = [
|
||||||
"PATH=/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin"
|
"/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";
|
||||||
};
|
};
|
||||||
users.users.gitea-runner = {
|
users.users.gitea-runner = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user