this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add option for cocoon email

Ben C 1d5c2785 d6269205

+12 -4
+1
nixosConfigurations/black-mesa.nix
··· 111 111 rotationPath = secure "rotation.key"; 112 112 adminPassPath = secure "admin.pass"; 113 113 sessionSecretPath = secure "session.key"; 114 + emailSetupPath = secure "email.env"; 114 115 relays = [ 115 116 "https://bsky.network" 116 117 "https://relay.cerulea.blue"
+11 -4
nixosModules/cocoon.nix
··· 64 64 description = "Path to favicon file to serve"; 65 65 default = null; 66 66 }; 67 + emailSetupPath = lib.mkOption { 68 + type = lib.types.nullOr lib.types.path; 69 + description = "Path of file to use to configure email sending with SMTP"; 70 + default = null; 71 + }; 67 72 }; 68 73 69 74 config = let ··· 127 132 128 133 services.cocoon = { 129 134 enable = true; 130 - environmentFiles = [ 131 - conf.adminPassPath 132 - conf.sessionSecretPath 133 - ]; 135 + environmentFiles = 136 + [ 137 + conf.adminPassPath 138 + conf.sessionSecretPath 139 + ] 140 + ++ lib.optional (conf.emailSetupPath != null) conf.emailSetupPath; 134 141 settings = lib.mapAttrs' (k: v: lib.nameValuePair "COCOON_${k}" v) { 135 142 JWK_PATH = conf.jwkPath; 136 143 ROTATION_KEY_PATH = conf.rotationPath;