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
|
let
|
||||||
cfg = config.my.servers.stash;
|
cfg = config.my.servers.stash;
|
||||||
|
cfgS = config.services.stash;
|
||||||
setup = import ../factories/mkserver.nix { inherit lib config; };
|
setup = import ../factories/mkserver.nix { inherit lib config; };
|
||||||
stashPythonFHS = pkgs.buildFHSEnv {
|
stashPythonFHS = pkgs.buildFHSEnv {
|
||||||
name = "stash-python-fhs";
|
name = "stash-python-fhs";
|
||||||
@ -52,9 +53,15 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.stash.environment = {
|
systemd.services.stash = {
|
||||||
PYTHONPATH = "/var/lib/stash/venv/lib/python3.12/site-packages";
|
environment = {
|
||||||
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.glibc}/lib:${pkgs.zlib}/lib:${pkgs.libffi}/lib:${pkgs.openssl}/lib";
|
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 = {
|
users.users.stash = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user