~sumner/home-manager-config

68e3ff169c80f1a0d3c729ae616d4b3189082d05 — Sumner Evans 8 months ago af558eb
mutt helper to home-manager
3 files changed, 10 insertions(+), 2 deletions(-)

M email/neomutt.nix
M services/window-manager/common.nix
M services/writeping.nix
M email/neomutt.nix => email/neomutt.nix +8 -0
@@ 6,6 6,14 @@ in
  # Add old mutt as well for now.
  home.packages = [ pkgs.mutt ];

  home.file."bin/mutt_helper" = {
    text = ''
      #!/usr/bin/env sh
      ${config.home.sessionVariables.TERMINAL} -t Mutt -e neomutt "$@"
    '';
    executable = true;
  };

  programs.neomutt = {
    enable = true;
    vimKeys = true;

M services/window-manager/common.nix => services/window-manager/common.nix +1 -1
@@ 174,7 174,7 @@
          # Move to workspace
          ++ (imap1 (i: { name, keycode }: { name = "${modifier}+Shift+${toString keycode}"; value = ''move container to workspace "${name}"''; }) extraWorkspaces)
        ) // {
          "${modifier}+34" = "exec ${config.home.homeDirectory}/bin/mutt_helper.sh"; # Launch mutt
          "${modifier}+34" = "exec ${config.home.homeDirectory}/bin/mutt_helper"; # Launch mutt
          "${modifier}+35" = "exec ${pkgs.element-desktop}/bin/element-desktop"; # Launch Element
        };


M services/writeping.nix => services/writeping.nix +1 -1
@@ 37,6 37,6 @@ in
      Unit = "writeping.service";
    };

    Install = { WantedBy = [ "timers.target" ]; };
    Install.WantedBy = [ "timers.target" ];
  };
}