Restructure DB config, add ssh keys
This commit is contained in:
parent
9479490574
commit
8f8da2a071
14 changed files with 155 additions and 17 deletions
29
config/hosts/grondahl/services/mail.nix
Normal file
29
config/hosts/grondahl/services/mail.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
(builtins.fetchTarball {
|
||||
# Pick a commit from the branch you are interested in
|
||||
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/6e3a7b2ea6f0d68b82027b988aa25d3423787303/nixos-mailserver-6e3a7b2ea6f0d68b82027b988aa25d3423787303.tar.gz";
|
||||
# And set its hash
|
||||
sha256 = "1i56llz037x416bw698v8j6arvv622qc0vsycd20lx3yx8n77n44";
|
||||
})
|
||||
];
|
||||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = "anarkafem.dev";
|
||||
domains = [ "anarkafem.dev" ];
|
||||
|
||||
# A list of all login accounts. To create the password hashes, use
|
||||
# nix run nixpkgs.apacheHttpd -c htpasswd -nbB "" "super secret password" | cut -d: -f2
|
||||
loginAccounts = {
|
||||
"noreply@anarkafem.dev" = {
|
||||
hashedPasswordFile = config.secrets.files.email_noreply.file;
|
||||
};
|
||||
};
|
||||
|
||||
keyFile = config.security.acme.certs."anarkafem.dev".directory + "/key.pem";
|
||||
certificateFile = config.security.acme.certs."anarkafem.dev".directory + "/cert.pem";
|
||||
certificateScheme = 1;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue