idek, random commit
This commit is contained in:
@@ -41,6 +41,10 @@
|
||||
domain = "translate.mtgmonkey.net";
|
||||
proxyTo = "http://localhost:9109/";
|
||||
}
|
||||
{
|
||||
domain = "mail.mtgmonkey.net";
|
||||
proxyTo = "http://localhost:6942/";
|
||||
}
|
||||
];
|
||||
};
|
||||
in {
|
||||
|
||||
27
services/mailserver.nix
Normal file
27
services/mailserver.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{config, ...}: {
|
||||
mailserver = {
|
||||
enable = true;
|
||||
stateVersion = 3;
|
||||
fqdn = "mail.mtgmonkey.net";
|
||||
domains = ["mtgmonkey.net"];
|
||||
|
||||
loginAccounts = {
|
||||
"example@mtgmonkey.net" = {
|
||||
hashedPasswordFile = "/home/mtgmonkey/secrets/example_passhash";
|
||||
aliases = ["postmaster@mtgmonkey.net"];
|
||||
};
|
||||
};
|
||||
|
||||
certificateScheme = "manual";
|
||||
};
|
||||
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
hostName = "localhost:6942";
|
||||
extraConfig = ''
|
||||
$config['smtp_server'] = tls://${config.mailserver.fqdn}";
|
||||
$config['smtp_user'] = "%u";
|
||||
$config['stmp_pass'] = "%p";
|
||||
'';
|
||||
};
|
||||
}
|
||||
8
services/minecraft-server.nix
Normal file
8
services/minecraft-server.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
jvmOpts = "-Xms512M -Xmx1024M";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user