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:
parent
a128dd5f40
commit
76163bad98
51 changed files with 284 additions and 51 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue