diff options
-rw-r--r-- | nixops/modules/websites/tools/peertube/default.nix | 5 |
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 | ||