mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 06:34:52 +00:00
fix email on darwin
This commit is contained in:
parent
98dcc471b4
commit
454ceb7d7d
@ -10,6 +10,7 @@ darwin.lib.darwinSystem {
|
||||
{
|
||||
gui.enable = true;
|
||||
gui.colorscheme = (import ../../modules/colorscheme/gruvbox);
|
||||
mailUser = globals.user;
|
||||
nixpkgs.overlays = [ nur.overlay ];
|
||||
}
|
||||
../common.nix
|
||||
|
@ -1,6 +1,11 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
options = {
|
||||
mailUser = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "User name for the email address.";
|
||||
default = config.user;
|
||||
};
|
||||
mailServer = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Server name for the email address.";
|
||||
@ -21,7 +26,7 @@
|
||||
accounts.email = {
|
||||
maildirBasePath = "$HOME/mail";
|
||||
accounts = {
|
||||
home = let address = "${config.user}@${config.mailServer}";
|
||||
home = let address = "${config.mailUser}@${config.mailServer}";
|
||||
in {
|
||||
userName = address;
|
||||
realName = config.fullName;
|
||||
|
Loading…
Reference in New Issue
Block a user