1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: add other mail domains, autogenerate argon hashes

This commit is contained in:
oddlama 2024-07-31 19:54:49 +02:00
parent a128dd5f40
commit 76163bad98
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
51 changed files with 284 additions and 51 deletions

View file

@ -108,6 +108,11 @@ in {
}));
};
salt = mkOption {
type = types.str;
description = "A salt value to use for hashes. Not secret, but also not public so you sneaky little buggers can't brute force my mail domains.";
};
services = mkOption {
type = types.attrsOf (types.submodule {
options = {
@ -214,6 +219,26 @@ in {
};
};
mail = {
domains = mkOption {
default = {};
description = "All domains on which we receive mail.";
type = types.attrsOf (types.submodule {
options = {
public = mkOption {
type = types.bool;
description = "Whether the domain should be available for use by any user";
};
};
});
};
primary = mkOption {
type = types.str;
description = "The primary mail domain.";
};
};
domains = {
me = mkOption {
type = types.str;
@ -224,16 +249,6 @@ in {
type = types.str;
description = "My personal domain.";
};
mail.all = mkOption {
type = types.listOf types.str;
description = "All domains to configure on the mail server.";
};
mail.primary = mkOption {
type = types.str;
description = "The primary mail domain.";
};
};
macs = mkOption {