aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-23 08:24:30 -0300
committerEuAndreh <eu@euandre.org>2020-08-23 08:24:30 -0300
commitfd3f8416abb9334b6c86e8f21f9e57965c3b205f (patch)
tree79179bda99762cbaaee9621f1f33e623c9553f2e
parentcustomize cgitrc confirugation (diff)
downloadserver-fd3f8416abb9334b6c86e8f21f9e57965c3b205f.tar.gz
server-fd3f8416abb9334b6c86e8f21f9e57965c3b205f.tar.xz
nixfmt ./vps-configuration.env.nix
-rw-r--r--vps-configuration.env.nix16
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"; };
};
};