Replace copy pasted hosts entry with option
This commit is contained in:
parent
2b7f6f41a8
commit
24bc378143
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, zentralwerk, ... }:
|
||||||
|
|
||||||
# this file contains default configuration that may be turned on depending on other config settings.
|
# this file contains default configuration that may be turned on depending on other config settings.
|
||||||
# options should go to modules.
|
# options should go to modules.
|
||||||
|
@ -71,6 +71,10 @@ lib.mkMerge [
|
||||||
enable = true;
|
enable = true;
|
||||||
permitRootLogin = "prohibit-password";
|
permitRootLogin = "prohibit-password";
|
||||||
};
|
};
|
||||||
|
portunus = with zentralwerk.lib.config.site.net.serv; {
|
||||||
|
externalIp4 = hosts4.auth;
|
||||||
|
externalIp6 = hosts6.up4.auth;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
@ -7,10 +7,6 @@
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "gitea";
|
hostName = "gitea";
|
||||||
hosts = with zentralwerk.lib.config.site.net.serv; {
|
|
||||||
${hosts6.up4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
${hosts4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
};
|
|
||||||
firewall.allowedTCPPorts = [ 2222 ];
|
firewall.allowedTCPPorts = [ 2222 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -139,6 +135,8 @@
|
||||||
X11Forwarding no
|
X11Forwarding no
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
portunus.addToHosts = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.msmtp = {
|
programs.msmtp = {
|
||||||
|
|
|
@ -11,13 +11,7 @@
|
||||||
"net.netfilter.nf_conntrack_max" = "65536";
|
"net.netfilter.nf_conntrack_max" = "65536";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking.hostName = "hedgedoc";
|
||||||
hostName = "hedgedoc";
|
|
||||||
hosts = with zentralwerk.lib.config.site.net.serv; {
|
|
||||||
${hosts6.up4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
${hosts4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
hedgedoc = {
|
hedgedoc = {
|
||||||
|
@ -75,19 +69,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
portunus.addToHosts = true;
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [
|
ensureDatabases = [
|
||||||
"hedgedoc"
|
"hedgedoc"
|
||||||
];
|
];
|
||||||
ensureUsers = [
|
ensureUsers = [ {
|
||||||
{
|
name = "hedgedoc";
|
||||||
name = "hedgedoc";
|
ensurePermissions = {
|
||||||
ensurePermissions = {
|
"DATABASE \"hedgedoc\"" = "ALL PRIVILEGES";
|
||||||
"DATABASE \"hedgedoc\"" = "ALL PRIVILEGES";
|
};
|
||||||
};
|
}];
|
||||||
}
|
|
||||||
];
|
|
||||||
package = pkgs.postgresql_14;
|
package = pkgs.postgresql_14;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -101,10 +101,6 @@ in
|
||||||
# };
|
# };
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hosts = with zentralwerk.lib.config.site.net.serv; {
|
|
||||||
${hosts6.up4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
${hosts4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
};
|
|
||||||
hostName = "hydra";
|
hostName = "hydra";
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
nameservers = [ "172.20.73.8" "9.9.9.9" ];
|
nameservers = [ "172.20.73.8" "9.9.9.9" ];
|
||||||
|
@ -233,9 +229,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
smartd.enable = true;
|
portunus.addToHosts = true;
|
||||||
|
|
||||||
resolved.enable = false;
|
resolved.enable = false;
|
||||||
|
|
||||||
|
smartd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
|
|
|
@ -46,14 +46,8 @@ in
|
||||||
group = config.users.users.dovecot2.group;
|
group = config.users.users.dovecot2.group;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
|
||||||
hosts = with zentralwerk.lib.config.site.net.serv; {
|
|
||||||
${hosts6.up4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
${hosts4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
portunus.addToHosts = true;
|
||||||
postfix = {
|
postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSmtp = true;
|
enableSmtp = true;
|
||||||
|
|
|
@ -7,13 +7,7 @@
|
||||||
needForSpeed = true;
|
needForSpeed = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking.hostName = "mastodon";
|
||||||
hostName = "mastodon";
|
|
||||||
hosts = with zentralwerk.lib.config.site.net.serv; {
|
|
||||||
${hosts6.up4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
${hosts4.auth} = [ "auth.c3d2.de" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "elasticsearch";
|
nixpkgs.config.allowUnfreePredicate = pkg: lib.getName pkg == "elasticsearch";
|
||||||
|
|
||||||
|
@ -152,6 +146,8 @@
|
||||||
"social.c3d2.de"
|
"social.c3d2.de"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
portunus.addToHosts = true;
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureUsers = [{
|
ensureUsers = [{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user