mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
This commit is contained in:
parent
d02f3fb4b0
commit
05399c268a
31 changed files with 136 additions and 62 deletions
24
newinfra/nix/apps/mail/default.nix
Normal file
24
newinfra/nix/apps/mail/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, ... }:
|
||||
let release = "nixos-24.11"; in
|
||||
{
|
||||
age.secrets.mail_git_password_hashed.file = ../../secrets/mail_git_password_hashed.age;
|
||||
|
||||
imports = [
|
||||
(builtins.fetchTarball {
|
||||
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${release}/nixos-mailserver-${release}.tar.gz";
|
||||
sha256 = "05k4nj2cqz1c5zgqa0c6b8sp3807ps385qca74fgs6cdc415y3qw";
|
||||
})
|
||||
];
|
||||
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = "mail.noratrieb.dev";
|
||||
domains = [ "git.noratrieb.dev" ];
|
||||
|
||||
loginAccounts = {
|
||||
"git@git.noratrieb.dev" = {
|
||||
hashedPasswordFile = config.age.secrets.mail_git_password_hashed.path;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue