[temp] move mailserver to own configuration
This commit is contained in:
parent
d5898d1c0c
commit
f15114b2d5
@ -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";
|
||||
};
|
||||
}
|
29
flake.nix
29
flake.nix
@ -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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user