bekkalokk: add snappymail #39

Merged
felixalb merged 1 commits from bekkalokk-snappymail into main 2024-05-26 01:52:18 +02:00
Owner

DNS slow => No Cert yet
Otherwise; works.

The admin password is secret for now >:)
(But i'll get started on vaultwarden)

DNS slow => No Cert yet Otherwise; works. The admin password is secret for now >:) (But i'll get started on vaultwarden)
felixalb added 1 commit 2024-05-26 00:14:39 +02:00
pederbs reviewed 2024-05-26 00:26:29 +02:00
@ -0,0 +9,4 @@
options.services.snappymail = {
enable = mkEnableOption (lib.mdDoc "Snappymail");
package = mkOption {
Owner

mkPackageOption pkgs "snappymail" {};

`mkPackageOption pkgs "snappymail" {};`
felixalb marked this conversation as resolved
@ -0,0 +89,4 @@
deny all;
'';
locations."~ \\.php$".extraConfig = ''
include ${pkgs.nginx}/conf/fastcgi_params;
Owner

include ${config.services.nginx.package}/conf/fastcgi_params;

`include ${config.services.nginx.package}/conf/fastcgi_params; `
felixalb marked this conversation as resolved
oysteikt reviewed 2024-05-26 00:33:23 +02:00
@ -0,0 +7,4 @@
maxUploadSize = "256M";
in {
options.services.snappymail = {
enable = mkEnableOption (lib.mdDoc "Snappymail");
Owner

mdDoc no longer needed

`mdDoc` no longer needed
felixalb marked this conversation as resolved
@ -0,0 +9,4 @@
options.services.snappymail = {
enable = mkEnableOption (lib.mdDoc "Snappymail");
package = mkOption {
Owner
package = mkPackageOption pkgs "snappymail" { };
``` package = mkPackageOption pkgs "snappymail" { }; ```
felixalb marked this conversation as resolved
@ -0,0 +24,4 @@
hostname = mkOption {
type = types.str;
/* default = null; */
Owner

uncomment?

uncomment?
felixalb marked this conversation as resolved
@ -0,0 +49,4 @@
group = cfg.group;
home = cfg.dataDir;
useDefaultShell = true;
createHome = true;
Owner

Does this actually need a home and shell? If so, could you leave a comment explaining why?

Does this actually need a home and shell? If so, could you leave a comment explaining why?
Author
Owner

Nope, didn't need :)

Nope, didn't need :)
felixalb marked this conversation as resolved
@ -0,0 +89,4 @@
deny all;
'';
locations."~ \\.php$".extraConfig = ''
include ${pkgs.nginx}/conf/fastcgi_params;
Owner
Already included: https://github.com/NixOS/nixpkgs/blob/46397778ef1f73414b03ed553a3368f0e7e33c2f/nixos/modules/services/web-servers/nginx/default.nix#L139
Author
Owner

Dette er trollvirksomhet, funkittj >:(

Dette er trollvirksomhet, funkittj >:(
felixalb marked this conversation as resolved
felixalb force-pushed bekkalokk-snappymail from aaa400d80f to 5fb1b805a8 2024-05-26 01:08:00 +02:00 Compare
felixalb requested review from oysteikt 2024-05-26 01:41:19 +02:00
oysteikt approved these changes 2024-05-26 01:41:25 +02:00
oysteikt left a comment
Owner

Works in prod

Works in prod
felixalb merged commit 1c35da0295 into main 2024-05-26 01:52:18 +02:00
felixalb deleted branch bekkalokk-snappymail 2024-05-26 01:52:27 +02:00
Sign in to join this conversation.
No description provided.