mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 11:34:07 +02:00
simple mail config
This commit is contained in:
parent
99892fab5c
commit
2cbec3d841
3 changed files with 32 additions and 0 deletions
|
@ -38,6 +38,11 @@
|
||||||
inputs.nixpkgs-stable.follows = "nixpkgs";
|
inputs.nixpkgs-stable.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
snm = {
|
||||||
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
tela-icon-theme = {
|
tela-icon-theme = {
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
self.inputs.srvos.nixosModules.server
|
self.inputs.srvos.nixosModules.server
|
||||||
self.inputs.srvos.nixosModules.hardware-hetzner-online-amd
|
self.inputs.srvos.nixosModules.hardware-hetzner-online-amd
|
||||||
self.inputs.srvos.nixosModules.mixins-nginx
|
self.inputs.srvos.nixosModules.mixins-nginx
|
||||||
|
self.inputs.snm.nixosModules.mailserver
|
||||||
|
./mail.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
jopejoe1 = {
|
jopejoe1 = {
|
||||||
|
@ -36,6 +38,9 @@
|
||||||
|
|
||||||
services.openssh.ports = [ 22 ];
|
services.openssh.ports = [ 22 ];
|
||||||
|
|
||||||
|
security.acme.acceptTerms = true;
|
||||||
|
security.acme.defaults.email = "security@missing.ninja";
|
||||||
|
|
||||||
users.users.jopejoe1.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
|
users.users.jopejoe1.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
|
||||||
users.users.root.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
|
users.users.root.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
|
||||||
|
|
||||||
|
|
22
systems/hetzner/mail.nix
Normal file
22
systems/hetzner/mail.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ config, pkgs, lib, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
mailserver = {
|
||||||
|
enable = true;
|
||||||
|
fqdn = "mail.missing.ninja";
|
||||||
|
domains = [ "missing.ninja" ];
|
||||||
|
|
||||||
|
# A list of all login accounts. To create the password hashes, use
|
||||||
|
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
|
||||||
|
loginAccounts = {
|
||||||
|
"admin@missing.ninja" = {
|
||||||
|
hashedPasswordFile = "/a/file/containing/a/hashed/password";
|
||||||
|
aliases = [ "@missing.ninja" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Use Let's Encrypt certificates. Note that this needs to set up a stripped
|
||||||
|
# down nginx and opens port 80.
|
||||||
|
certificateScheme = "acme-nginx";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue