diff options
Diffstat (limited to 'vps-configuration.env.nix')
-rw-r--r-- | vps-configuration.env.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix index 3fadf25..d84259f 100644 --- a/vps-configuration.env.nix +++ b/vps-configuration.env.nix @@ -277,11 +277,17 @@ in { enable = true; description = "Setup data folders and permissions"; wantedBy = [ "multi-user.target" ]; - script = pkgs.lib.fold (p: acc: acc + '' - mkdir -p ${DOLLAR}{p} - chown -R andreh:users ${DOLLAR}{p} - chmod -R 755 ${DOLLAR}{p} - '') "" (with envsubstConfiguration; [staticRoot gitRoot faviconsRoot dataRoot]); + script = pkgs.lib.fold (p: acc: + acc + '' + mkdir -p ${DOLLAR}{p} + chown -R andreh:users ${DOLLAR}{p} + chmod -R 755 ${DOLLAR}{p} + '') "" (with envsubstConfiguration; [ + staticRoot + gitRoot + faviconsRoot + dataRoot + ]); serviceConfig = { Type = "oneshot"; }; }; }; |