mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 22:45:37 +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.enable = true;
|
||||||
gui.colorscheme = (import ../../modules/colorscheme/gruvbox);
|
gui.colorscheme = (import ../../modules/colorscheme/gruvbox);
|
||||||
|
mailUser = globals.user;
|
||||||
nixpkgs.overlays = [ nur.overlay ];
|
nixpkgs.overlays = [ nur.overlay ];
|
||||||
}
|
}
|
||||||
../common.nix
|
../common.nix
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
mailUser = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "User name for the email address.";
|
||||||
|
default = config.user;
|
||||||
|
};
|
||||||
mailServer = lib.mkOption {
|
mailServer = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Server name for the email address.";
|
description = "Server name for the email address.";
|
||||||
@ -21,7 +26,7 @@
|
|||||||
accounts.email = {
|
accounts.email = {
|
||||||
maildirBasePath = "$HOME/mail";
|
maildirBasePath = "$HOME/mail";
|
||||||
accounts = {
|
accounts = {
|
||||||
home = let address = "${config.user}@${config.mailServer}";
|
home = let address = "${config.mailUser}@${config.mailServer}";
|
||||||
in {
|
in {
|
||||||
userName = address;
|
userName = address;
|
||||||
realName = config.fullName;
|
realName = config.fullName;
|
||||||
|
Loading…
Reference in New Issue
Block a user