diff --git a/home-manager/programs/advanced.nix b/home-manager/programs/advanced.nix index 4f0afbb..562b382 100644 --- a/home-manager/programs/advanced.nix +++ b/home-manager/programs/advanced.nix @@ -10,6 +10,8 @@ let gh-dash = import ./gh-dash; git = import ./git { inherit pkgs; }; lnav = import ./lnav { inherit pkgs; }; + mu = import ./mu; + msmtp = import ./msmtp { inherit pkgs; }; nix-index = import ./nix-index; nyxt = import ./nyxt { inherit pkgs; }; offlineimap = import ./offlineimap; @@ -30,6 +32,8 @@ in gh-dash git lnav + mu + msmtp nix-index nyxt offlineimap diff --git a/home-manager/programs/basic.nix b/home-manager/programs/basic.nix index 5b0f989..48dc2cc 100644 --- a/home-manager/programs/basic.nix +++ b/home-manager/programs/basic.nix @@ -10,7 +10,6 @@ let gnupg = import ./gnupg; man = import ./man; misc = import ./misc; - mu = import ./mu; neovim = import ./neovim { inherit pkgs sources; }; password-store = import ./password-store { inherit pkgs; }; peco = import ./peco { inherit pkgs; }; @@ -33,7 +32,6 @@ in gnupg man misc - mu password-store neovim peco diff --git a/home-manager/programs/msmtp/default.nix b/home-manager/programs/msmtp/default.nix new file mode 100644 index 0000000..409da30 --- /dev/null +++ b/home-manager/programs/msmtp/default.nix @@ -0,0 +1,29 @@ +{ pkgs }: { + programs.msmtp = { + enable = true; + extraConfig = '' + defaults + auth on + tls on + ''; + }; + + accounts.email.accounts = { + SmtpGmail = { + primary = true; + msmtp.enable = true; + realName = "takeo obara"; + userName = "takeo obara"; + address = "bararararatty@gmail.com"; + passwordCommand = [ + "pass" + "show" + "private/develop/google/smtp" + ]; + smtp = { + host = "smtp.gmail.com"; + tls.enable = true; + }; + }; + }; +} diff --git a/home-manager/programs/mu/default.nix b/home-manager/programs/mu/default.nix index b09638e..227d49f 100644 --- a/home-manager/programs/mu/default.nix +++ b/home-manager/programs/mu/default.nix @@ -1 +1,3 @@ -{ programs.mu.enable = true; } +{ + programs.mu.enable = true; +} diff --git a/home-manager/programs/offlineimap/default.nix b/home-manager/programs/offlineimap/default.nix index 38ac99d..8d8038e 100644 --- a/home-manager/programs/offlineimap/default.nix +++ b/home-manager/programs/offlineimap/default.nix @@ -9,7 +9,6 @@ accounts.email.accounts = { Gmail = { - primary = true; offlineimap = { enable = true; extraConfig.remote = {