Compare commits
No commits in common. "3f68b251334b0c710973a52e050484dedc6860c2" and "618a6b544fa61a7b790f60e2a6075ed944c865c4" have entirely different histories.
3f68b25133
...
618a6b544f
5 changed files with 1 additions and 54 deletions
|
@ -111,7 +111,7 @@
|
||||||
nixpkgs-review
|
nixpkgs-review
|
||||||
just
|
just
|
||||||
hugo
|
hugo
|
||||||
ghidra
|
ghidra-bin
|
||||||
sequoia
|
sequoia
|
||||||
sccache
|
sccache
|
||||||
awscli2
|
awscli2
|
||||||
|
|
|
@ -205,6 +205,4 @@
|
||||||
};
|
};
|
||||||
virtualisation.oci-containers.backend = "podman";
|
virtualisation.oci-containers.backend = "podman";
|
||||||
environment.enableAllTerminfo = true;
|
environment.enableAllTerminfo = true;
|
||||||
|
|
||||||
my.roundcube.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,6 @@
|
||||||
sbctl # secure boot
|
sbctl # secure boot
|
||||||
wine-wayland
|
wine-wayland
|
||||||
wine64
|
wine64
|
||||||
solaar
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
|
|
@ -3,6 +3,5 @@
|
||||||
imports = [
|
imports = [
|
||||||
./backup.nix
|
./backup.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
./roundcube.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.my.roundcube;
|
|
||||||
fpm = config.services.phpfpm.pools.roundcube;
|
|
||||||
roundcube = config.services.roundcube;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.my.roundcube = {
|
|
||||||
enable = lib.mkEnableOption "roundcube webmail";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
services.roundcube = {
|
|
||||||
enable = true;
|
|
||||||
configureNginx = false;
|
|
||||||
package = pkgs.roundcube.withPlugins (p: with p; [
|
|
||||||
persistent_login
|
|
||||||
contextmenu
|
|
||||||
custom_from
|
|
||||||
thunderbird_labels
|
|
||||||
]);
|
|
||||||
plugins = [
|
|
||||||
"persistent_login"
|
|
||||||
"contextmenu"
|
|
||||||
"custom_from"
|
|
||||||
"thunderbird_labels"
|
|
||||||
];
|
|
||||||
dicts = with pkgs.aspellDicts; [ en ];
|
|
||||||
extraConfig = ''
|
|
||||||
$config['imap_host'] = "ssl://imap.migadu.com:993";
|
|
||||||
$config['smtp_host'] = "ssl://smtp.migadu.com:465";
|
|
||||||
$config['smtp_user'] = "%u";
|
|
||||||
$config['smtp_pass'] = "%p";
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
services.phpfpm.pools.roundcube.settings = lib.mapAttrs (name: lib.mkForce) {
|
|
||||||
"listen.owner" = "caddy";
|
|
||||||
"listen.group" = "caddy";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.caddy.virtualHosts."mail.cy7.sh".extraConfig = ''
|
|
||||||
import common
|
|
||||||
root ${roundcube.package}
|
|
||||||
php_fastcgi unix/${fpm.socket}
|
|
||||||
file_server
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue