aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-20 23:46:52 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-20 23:46:52 +0200
commit43fe68fb9fc66bda710974fe2a1a3321aa853303 (patch)
tree56ad390dfc092b46cdbe1b3cc5074ef679e84e31 /nixops/modules/websites
parente1da84b06c408ea5d4d093de39efdda71ad6dc95 (diff)
downloadNix-43fe68fb9fc66bda710974fe2a1a3321aa853303.tar.gz
Nix-43fe68fb9fc66bda710974fe2a1a3321aa853303.tar.zst
Nix-43fe68fb9fc66bda710974fe2a1a3321aa853303.zip
Avoid using possibly non-existent file in activation script for peertube
Diffstat (limited to 'nixops/modules/websites')
-rw-r--r--nixops/modules/websites/tools/peertube/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixops/modules/websites/tools/peertube/default.nix b/nixops/modules/websites/tools/peertube/default.nix
index 1f88a15..bb601af 100644
--- a/nixops/modules/websites/tools/peertube/default.nix
+++ b/nixops/modules/websites/tools/peertube/default.nix
@@ -22,6 +22,7 @@ in {
22 description = "Peertube user"; 22 description = "Peertube user";
23 home = peertube.varDir; 23 home = peertube.varDir;
24 useDefaultShell = true; 24 useDefaultShell = true;
25 extraGroups = [ "keys" ];
25 }; 26 };
26 27
27 users.groups.peertube.gid = config.ids.gids.peertube; 28 users.groups.peertube.gid = config.ids.gids.peertube;
@@ -61,7 +62,7 @@ in {
61 destDir = "/run/keys/webapps"; 62 destDir = "/run/keys/webapps";
62 user = "peertube"; 63 user = "peertube";
63 group = "peertube"; 64 group = "peertube";
64 permissions = "0400"; 65 permissions = "0640";
65 text = peertube.config; 66 text = peertube.config;
66 }; 67 };
67 68
@@ -70,7 +71,7 @@ in {
70 text = '' 71 text = ''
71 install -m 0750 -o peertube -g peertube -d ${peertube.varDir} 72 install -m 0750 -o peertube -g peertube -d ${peertube.varDir}
72 install -m 0750 -o peertube -g peertube -d ${peertube.varDir}/config 73 install -m 0750 -o peertube -g peertube -d ${peertube.varDir}/config
73 install -m 0640 -o peertube -g peertube -T /run/keys/webapps/tools-peertube ${peertube.varDir}/config/production.yaml 74 ln -sf /run/keys/webapps/tools-peertube ${peertube.varDir}/config/production.yaml
74 ''; 75 '';
75 }; 76 };
76 77