mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
don't check canonicalized paths while sandboxed
Because the configured paths won't exist in the sandbox, so canonicalization would fail.
This commit is contained in:
parent
50583bc93e
commit
a04951541a
5 changed files with 30 additions and 19 deletions
|
|
@ -12,7 +12,7 @@ let
|
|||
cfg = config.services.grapevine;
|
||||
configFile = format.generate "config.toml" cfg.settings;
|
||||
validateConfig = file: pkgs.runCommand "grapevine-checked-config" {} ''
|
||||
${lib.getExe cfg.package} check-config -c ${lib.escapeShellArg file}
|
||||
${lib.getExe cfg.package} check-config -sc ${lib.escapeShellArg file}
|
||||
ln -s ${lib.escapeShellArg file} "$out"
|
||||
'';
|
||||
format = pkgs.formats.toml {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue