replaced stash readonly paths with normal binds
All checks were successful
Weekly NixOS Build & Cache / build-and-cache (push) Successful in 23m49s
All checks were successful
Weekly NixOS Build & Cache / build-and-cache (push) Successful in 23m49s
This commit is contained in:
parent
84737df99b
commit
a09d10ab90
@ -6,6 +6,7 @@
|
||||
}:
|
||||
let
|
||||
cfg = config.my.servers.stash;
|
||||
cfgS = config.services.stash;
|
||||
setup = import ../factories/mkserver.nix { inherit lib config; };
|
||||
stashPythonFHS = pkgs.buildFHSEnv {
|
||||
name = "stash-python-fhs";
|
||||
@ -52,10 +53,16 @@ in
|
||||
];
|
||||
};
|
||||
};
|
||||
systemd.services.stash.environment = {
|
||||
systemd.services.stash = {
|
||||
environment = {
|
||||
PYTHONPATH = "/var/lib/stash/venv/lib/python3.12/site-packages";
|
||||
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.glibc}/lib:${pkgs.zlib}/lib:${pkgs.libffi}/lib:${pkgs.openssl}/lib";
|
||||
};
|
||||
serviceConfig = {
|
||||
BindReadOnlyPaths = lib.mkForce [ ];
|
||||
BindPaths = lib.mkIf (cfgS.settings != { }) (map (stash: "${stash.path}") cfgS.settings.stash);
|
||||
};
|
||||
};
|
||||
users.users.stash = {
|
||||
isSystemUser = true;
|
||||
packages = [ stashPythonFHS ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user