[temp] move mailserver to own configuration
This commit is contained in:
parent
d5898d1c0c
commit
3cf6489e12
@ -16,6 +16,7 @@
|
||||
./franklincce.nix
|
||||
./wireguard.nix
|
||||
./nextcloud.nix
|
||||
./mail.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
27
boxes/netbox/mail.nix
Normal file
27
boxes/netbox/mail.nix
Normal 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";
|
||||
};
|
||||
}
|
23
flake.nix
23
flake.nix
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user