[temp] move mailserver to own configuration

This commit is contained in:
stupidcomputer 2024-12-26 15:50:24 -06:00
parent d5898d1c0c
commit f15114b2d5
3 changed files with 31 additions and 26 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

@ -18,44 +18,21 @@
nixosConfigurations = {
netbox = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
specialArgs = { inherit inputs; } // { machines = import ./lib/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 {
system = "x86_64-linux";
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
specialArgs = { inherit inputs; } // { machines = import ./lib/machines.nix; };
modules = [
./boxes/copernicus
];
};
aristotle = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; } // { machines = import ./machines.nix; };
specialArgs = { inherit inputs; } // { machines = import ./lib/machines.nix; };
modules = [
./lappy/configuration.nix
];