Compare commits
No commits in common. "ecc4a2f61656864c1d2d26915b0cbf86080e7edf" and "451b952b3754bc5f762bb2c28d960071c019a35a" have entirely different histories.
ecc4a2f616
...
451b952b37
|
@ -58,11 +58,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1712745070,
|
"lastModified": 1711535911,
|
||||||
"narHash": "sha256-75kSMjyCD5/IliSPkBcBSBamwPYF30Ddr8Ef2XxDfiE=",
|
"narHash": "sha256-SzgDrsyBskLyipFzsKwPOKP9FMgGB+6tUQ0VpeGQ/1Y=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "c2650ecab1c7b9b2e10d690b40e82817d257b53a",
|
"rev": "80221fa4d735fbc232d97d3384c8af0e40a4e331",
|
||||||
"revCount": 28,
|
"revCount": 9,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.sondell.org/glennwso/home.git"
|
"url": "https://git.sondell.org/glennwso/home.git"
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,7 @@ in
|
||||||
After="network-online.target";
|
After="network-online.target";
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${homepage}/bin/home-prod -p ${port}";
|
ExecStart = "${homepage}/bin/homepage -p ${port}";
|
||||||
User= "sondell";
|
User= "sondell";
|
||||||
Type= "simple";
|
Type= "simple";
|
||||||
};
|
};
|
||||||
|
|
34
mail.nix
34
mail.nix
|
@ -1,8 +1,4 @@
|
||||||
{ mailserver , ... }:
|
{ mailserver , ... }:
|
||||||
let
|
|
||||||
domain = "sondell.org";
|
|
||||||
fqdn = "mail.${domain}";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
mailserver
|
mailserver
|
||||||
|
@ -10,8 +6,8 @@ in
|
||||||
|
|
||||||
mailserver = {
|
mailserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fqdn = fqdn;
|
fqdn = "mail.sondell.org";
|
||||||
domains = [ domain ];
|
domains = [ "sondell.org" ];
|
||||||
|
|
||||||
# A list of all login accounts. To create the password hashes, use
|
# A list of all login accounts. To create the password hashes, use
|
||||||
# cat .secrets/nextadminpw | nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt' > .secrets/mailpw.hash
|
# cat .secrets/nextadminpw | nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt' > .secrets/mailpw.hash
|
||||||
|
@ -27,18 +23,18 @@ in
|
||||||
certificateScheme = "acme-nginx";
|
certificateScheme = "acme-nginx";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.roundcube = {
|
# services.roundcube = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
# this is the url of the vhost, not necessarily the same as the fqdn of
|
# # this is the url of the vhost, not necessarily the same as the fqdn of
|
||||||
# the mailserver
|
# # the mailserver
|
||||||
hostName = "webmail.${domain}";
|
# hostName = "webmail.sondell.org";
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
# starttls needed for authentication, so the fqdn required to match
|
# # starttls needed for authentication, so the fqdn required to match
|
||||||
# the certificate
|
# # the certificate
|
||||||
$config['smtp_server'] = "tls://${fqdn}";
|
# $config['smtp_server'] = "tls://${mailserver.fqdn}";
|
||||||
$config['smtp_user'] = "%u";
|
# $config['smtp_user'] = "%u";
|
||||||
$config['smtp_pass'] = "%p";
|
# $config['smtp_pass'] = "%p";
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue