Skip to content

Commit

Permalink
refactor: email folder
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 6, 2024
1 parent dab5de3 commit 6388b11
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@ let
};
in
{
home.shellAliases = {
H = "himalaya";
Hr = "himalaya message read";
Hd = "himalaya message delete";
Hs = "himalaya account sync";
};

programs.himalaya = {
enable = true;
};

imports = [
./himalaya.nix
];
accounts.email.accounts = {
"[email protected]" = iCloudMailSettings // {
primary = true;
Expand All @@ -32,13 +24,6 @@ in
aliases = [ "[email protected]" ];
userName = "happyandharmless";
passwordCommand = "op read op://Personal/iCloud-Apple/himalaya";
himalaya = {
enable = true;
# Don't forget to run `himalaya account sync` first!
settings.sync = {
enable = true;
};
};
};
};
}
24 changes: 24 additions & 0 deletions modules/home/all/email/himalaya.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
home.shellAliases = {
H = "himalaya";
Hr = "himalaya message read";
Hd = "himalaya message delete";
Hs = "himalaya account sync";
};

programs.himalaya = {
enable = true;
};

accounts.email.accounts = {
"[email protected]" = {
himalaya = {
enable = true;
# Don't forget to run `himalaya account sync` first!
settings.sync = {
enable = true;
};
};
};
};
}
2 changes: 1 addition & 1 deletion modules/home/darwin-only.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
imports = [
./all/zsh.nix
./all/wezterm
./all/himalaya.nix
./all/email
./all/_1password.nix
./all/emacs.nix
];
Expand Down

0 comments on commit 6388b11

Please sign in to comment.