From fd3f8416abb9334b6c86e8f21f9e57965c3b205f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 23 Aug 2020 08:24:30 -0300 Subject: nixfmt ./vps-configuration.env.nix --- vps-configuration.env.nix | 16 +++++++++++----- 1 file 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"; }; }; }; -- cgit v1.2.3