forked from fabian/nix_config
modularize accounts
This commit is contained in:
parent
541f80ff91
commit
9418588fed
3 changed files with 24 additions and 11 deletions
22
home/modules/accounts.nix
Normal file
22
home/modules/accounts.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.services.accounts;
|
||||
in {
|
||||
options.local.services.accounts.enable = mkEnableOption "accounts settings";
|
||||
config = mkIf cfg.enable {
|
||||
accounts.email.accounts = {
|
||||
"fabian@posixlycorrect.com" = {
|
||||
address = "fabian@posixlycorrect.com";
|
||||
userName = "fabianmontero@fastmail.com";
|
||||
realName = "fabian";
|
||||
primary = true;
|
||||
flavor = "fastmail.com";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue