move mailserver config from flake to boxes/netbox/mail.nix

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

View File

@ -16,6 +16,7 @@
./franklincce.nix
./wireguard.nix
./nextcloud.nix
./mail.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; };
modules = [
./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 {