diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-01-23 23:26:11 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-01-24 00:12:09 +0100 |
commit | 3d11eafc9c516321901908338befe4c04b58f3aa (patch) | |
tree | e16d8e92eeabfb834424772b71e8833e864e4849 /modules/private | |
parent | ce95026934c4ea8c647365f68eb195459fcdff08 (diff) | |
download | Nix-3d11eafc9c516321901908338befe4c04b58f3aa.tar.gz Nix-3d11eafc9c516321901908338befe4c04b58f3aa.tar.zst Nix-3d11eafc9c516321901908338befe4c04b58f3aa.zip |
Use peertube flake in modules
Diffstat (limited to 'modules/private')
-rw-r--r-- | modules/private/databases/openldap/immae.schema | 18 | ||||
-rw-r--r-- | modules/private/websites/syden/peertube.nix | 2 | ||||
-rw-r--r-- | modules/private/websites/tools/peertube/default.nix | 2 |
3 files changed, 17 insertions, 5 deletions
diff --git a/modules/private/databases/openldap/immae.schema b/modules/private/databases/openldap/immae.schema index f5ee5d5..d2ef972 100644 --- a/modules/private/databases/openldap/immae.schema +++ b/modules/private/databases/openldap/immae.schema | |||
@@ -161,7 +161,19 @@ objectclass ( ImmaeobjectClass:9 NAME 'immaeTaskClass' | |||
161 | MUST ( immaeTaskId ) | 161 | MUST ( immaeTaskId ) |
162 | ) | 162 | ) |
163 | 163 | ||
164 | # Last: | 164 | # Peertube uid |
165 | # attributetype (ImmaeattributeType:19 NAME 'immaeTaskId' | 165 | attributetype ( ImmaeattributeType:20 NAME 'immaePeertubeId' |
166 | # objectclass ( ImmaeobjectClass:9 NAME 'immaeTaskClass' | 166 | DESC 'login for Peertube' |
167 | EQUALITY caseIgnoreMatch | ||
168 | SUBSTR caseIgnoreSubstringsMatch | ||
169 | SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ) | ||
167 | 170 | ||
171 | objectclass ( ImmaeobjectClass:10 NAME 'immaePeertubeClass' | ||
172 | DESC 'Expansion of the existing object classes for peertube' | ||
173 | SUP top AUXILIARY | ||
174 | MUST ( immaePeertubeId ) ) | ||
175 | |||
176 | |||
177 | # Last: | ||
178 | # attributetype ( ImmaeattributeType:20 NAME 'immaePeertubeId' | ||
179 | # objectclass ( ImmaeobjectClass:10 NAME 'immaePeertubeClass' | ||
diff --git a/modules/private/websites/syden/peertube.nix b/modules/private/websites/syden/peertube.nix index 5732928..aa465d7 100644 --- a/modules/private/websites/syden/peertube.nix +++ b/modules/private/websites/syden/peertube.nix | |||
@@ -3,7 +3,7 @@ let | |||
3 | scfg = config.myServices.websites.syden.peertube; | 3 | scfg = config.myServices.websites.syden.peertube; |
4 | name = "peertube"; | 4 | name = "peertube"; |
5 | dataDir = "/var/lib/syden_peertube"; | 5 | dataDir = "/var/lib/syden_peertube"; |
6 | package = (pkgs.mylibs.flakeCompat ../../../../flakes/private/peertube).default; | 6 | package = (pkgs.mylibs.flakeCompat ../../../../flakes/private/peertube).packages.x86_64-linux.peertube_syden; |
7 | env = config.myEnv.tools.syden_peertube; | 7 | env = config.myEnv.tools.syden_peertube; |
8 | in | 8 | in |
9 | { | 9 | { |
diff --git a/modules/private/websites/tools/peertube/default.nix b/modules/private/websites/tools/peertube/default.nix index 3345453..9c5ef5a 100644 --- a/modules/private/websites/tools/peertube/default.nix +++ b/modules/private/websites/tools/peertube/default.nix | |||
@@ -15,7 +15,6 @@ in { | |||
15 | services.peertube = { | 15 | services.peertube = { |
16 | enable = true; | 16 | enable = true; |
17 | configFile = "/var/secrets/webapps/tools-peertube"; | 17 | configFile = "/var/secrets/webapps/tools-peertube"; |
18 | package = pkgs.webapps.peertube.override { ldap = true; sendmail = true; light = "fr-FR"; }; | ||
19 | }; | 18 | }; |
20 | users.users.peertube.extraGroups = [ "keys" ]; | 19 | users.users.peertube.extraGroups = [ "keys" ]; |
21 | 20 | ||
@@ -73,6 +72,7 @@ in { | |||
73 | captions: '${pcfg.dataDir}/storage/captions/' | 72 | captions: '${pcfg.dataDir}/storage/captions/' |
74 | cache: '${pcfg.dataDir}/storage/cache/' | 73 | cache: '${pcfg.dataDir}/storage/cache/' |
75 | plugins: '${pcfg.dataDir}/storage/plugins/' | 74 | plugins: '${pcfg.dataDir}/storage/plugins/' |
75 | client_overrides: '${pcfg.dataDir}/storage/client-overrides/' | ||
76 | ''; | 76 | ''; |
77 | }]; | 77 | }]; |
78 | 78 | ||