[temp] move mailserver to own configuration

This commit is contained in:
stupidcomputer 2024-12-26 15:50:24 -06:00
parent d5898d1c0c
commit 3cf6489e12
3 changed files with 28 additions and 23 deletions

View File

@ -16,6 +16,7 @@
./franklincce.nix ./franklincce.nix
./wireguard.nix ./wireguard.nix
./nextcloud.nix ./nextcloud.nix
./mail.nix
]; ];
nix = { nix = {

27
boxes/netbox/mail.nix Normal file
View File

@ -0,0 +1,27 @@
{ inputs, ...}:
{
imports = [
inputs.simple-nixos-mailserver.nixosModule
];
mailserver = {
enable = true;
fqdn = "mail.beepboop.systems";
domains = [ "beepboop.systems" ];
loginAccounts = {
"ryan@beepboop.systems" = {
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt' > /hashed/password/file/location
hashedPasswordFile = "/etc/ryan-beepboop-systemsuser-pass";
aliases = [
"info@beepboop.systems"
"postmaster@beepboop.systems"
];
};
"machines@beepboop.systems" = {
hashedPasswordFile = "/etc/ryan-beepboop-systemsuser-pass";
};
};
certificateScheme = "acme-nginx";
};
}

View File

@ -21,29 +21,6 @@
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; }; specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
modules = [ modules = [
./boxes/netbox ./boxes/netbox
simple-nixos-mailserver.nixosModule
{
mailserver = {
enable = true;
fqdn = "mail.beepboop.systems";
domains = [ "beepboop.systems" ];
loginAccounts = {
"ryan@beepboop.systems" = {
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt' > /hashed/password/file/location
hashedPasswordFile = "/etc/ryan-beepboop-systemsuser-pass";
aliases = [
"info@beepboop.systems"
"postmaster@beepboop.systems"
];
};
"machines@beepboop.systems" = {
hashedPasswordFile = "/etc/ryan-beepboop-systemsuser-pass";
};
};
certificateScheme = "acme-nginx";
};
}
]; ];
}; };
copernicus = nixpkgs.lib.nixosSystem { copernicus = nixpkgs.lib.nixosSystem {