feat: start setup nixos simple mailserver
This commit is contained in:
parent
e40fdef7a0
commit
16227a2f0e
2 changed files with 19 additions and 21 deletions
|
|
@ -39,6 +39,11 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mailserver = {
|
||||||
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nix-colors, automapaper, disko, hyprland, lazy, ... }@inputs:
|
outputs = { self, nixpkgs, nix-colors, automapaper, disko, hyprland, lazy, ... }@inputs:
|
||||||
|
|
@ -62,6 +67,7 @@
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
|
inputs.mailserver.nixosModules.default
|
||||||
./hosts/server/configuration.nix
|
./hosts/server/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -216,12 +216,6 @@
|
||||||
useACMEHost = "itepastra.nl";
|
useACMEHost = "itepastra.nl";
|
||||||
};
|
};
|
||||||
|
|
||||||
"mail.itepastra.nl" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = false;
|
|
||||||
useACMEHost = "itepastra.nl";
|
|
||||||
};
|
|
||||||
|
|
||||||
"pfa.itepastra.nl" = {
|
"pfa.itepastra.nl" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
|
@ -246,22 +240,20 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "rc.itepastra.nl";
|
hostName = "rc.itepastra.nl";
|
||||||
};
|
};
|
||||||
postfix = {
|
};
|
||||||
enable = true;
|
|
||||||
hostname = "mail.itepastra.nl";
|
mailserver = {
|
||||||
origin = "itepastra.nl";
|
enable = true;
|
||||||
};
|
fqdn = "mail.itepastra.nl";
|
||||||
postfixadmin = {
|
domains = [ "itepastra.nl" ];
|
||||||
enable = true;
|
|
||||||
hostName = "pfa.itepastra.nl";
|
loginAccounts = {
|
||||||
setupPasswordFile = /etc/postfixadminpass;
|
"noa@itepastra.nl" = {
|
||||||
adminEmail = "noa@itepastra.nl";
|
hashedPasswordFile = "/etc/passwords/noa@itepastra.nl";
|
||||||
database = {
|
|
||||||
username = "postfixadmin";
|
|
||||||
passwordFile = /etc/postfixdbpass;
|
|
||||||
dbname = "postfixadmin";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
certificateScheme = "acme-nginx";
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|
@ -272,7 +264,7 @@
|
||||||
"images.noa.voorwaarts.nl"
|
"images.noa.voorwaarts.nl"
|
||||||
"maintenance.noa.voorwaarts.nl"
|
"maintenance.noa.voorwaarts.nl"
|
||||||
];
|
];
|
||||||
"itepastra.nl".extraDomainNames = [ "locked.itepastra.nl" "rc.itepastra.nl" "mail.itepastra.nl" "pfa.itepastra.nl" ];
|
"itepastra.nl".extraDomainNames = [ "locked.itepastra.nl" "rc.itepastra.nl" "pfa.itepastra.nl" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue