this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

spice up cli life some more: - mx for fzf manix - orage maybe useful as a calendar?? - email notifications - all user services allowed to send notifications

+14 -40
+4
home/profiles/cli/default.nix
··· 4 4 binutils 5 5 coreutils 6 6 dnsutils 7 + dasht 7 8 dosfstools 8 9 #git 9 10 bottom ··· 86 87 direnv allow 87 88 fi 88 89 vim flake.nix 90 + } 91 + mx() { 92 + manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --preview="manix '{}'" | xargs manix 89 93 } 90 94 autopair-init 91 95 '';
+3
home/profiles/desktop/default.nix
··· 31 31 inotify-tools 32 32 ]; 33 33 34 + # set up env 35 + xsession.enable = true; 36 + 34 37 xresources.properties = { 35 38 "*.foreground" = "#95E6CB"; 36 39 "*.background" = "#1F2430";
+5 -39
home/profiles/email/default.nix
··· 1 - { config, pkgs, lib, ... }: 2 - with lib; 3 - let 4 - safeName = lib.replaceStrings [ "@" ":" "\\" "[" "]" ] [ "-" "-" "-" "" "" ]; 5 - imapnotifyAccounts = 6 - filter (a: a.imapnotify.enable) (attrValues config.accounts.email.accounts); 7 - genAccountUnit = account: 8 - let name = safeName account.name; 9 - in 10 - { 11 - name = "imapnotify-${name}-mine"; 12 - value = { 13 - Unit = { Description = "imapnotify for ${name}"; }; 14 - 15 - Service = { 16 - ExecStart = "${pkgs.goimapnotify}/bin/goimapnotify -conf /nix/store/6030i9xdga98l2zyqarrqv5mrjynwm3i-imapnotify-anish-config.json"; # TODO horrible hard coded config location 17 - Restart = "always"; 18 - RestartSec = 30; 19 - Type = "simple"; 20 - # this is why we're overriding this stupid thing 21 - # We need dbus for notify-send on systemd 22 - Environment = [ 23 - "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus" 24 - "NOTMUCH_CONFIG=${config.xdg.configHome}/notmuch/default/config" 25 - ]; 26 - }; 27 - 28 - Install = { WantedBy = [ "default.target" ]; }; 29 - }; 30 - }; 31 - 32 - in 1 + { pkgs, ... }: 33 2 { 34 3 #age.secrets.fastmail.file = "/etc/nixos/secrets/fastmail.age"; 35 4 #age.secrets.fastmail.owner = "anish"; ··· 41 10 services.mbsync = { 42 11 enable = true; 43 12 frequency = "*:0/30"; 44 - #postExec = "${pkgs.notmuch}/bin/notmuch new"; 13 + postExec = "${pkgs.notmuch}/bin/notmuch new"; 45 14 }; 46 - 47 - # call our stupid way of overriding the imapnotify service 48 - systemd.user.services = listToAttrs (map genAccountUnit [{ name = "anish"; }]); 49 15 50 16 services.imapnotify.enable = true; 51 17 programs.mbsync.enable = true; ··· 304 270 extraConfig.local.subFolders = "Verbatim"; 305 271 }; 306 272 imapnotify = { 307 - enable = false; 273 + enable = true; 308 274 boxes = [ "Inbox" ]; 309 - onNotify = "${pkgs.isync}/bin/mbsync anish && ${pkgs.notmuch}/bin/notmuch index"; 310 - onNotifyPost = "${pkgs.libnotify}/bin/notify-send -a mail 'email: new in %s'"; 275 + onNotify = "${pkgs.isync}/bin/mbsync anish && ${pkgs.notmuch}/bin/notmuch new"; 276 + onNotifyPost = "${pkgs.libnotify}/bin/notify-send 'New Email 📩'"; 311 277 }; 312 278 msmtp.enable = true; 313 279 msmtp.extraConfig = {
+2 -1
hosts/profiles/desktop/default.nix
··· 66 66 67 67 scrot 68 68 ripcord 69 + xfce.orage 69 70 feh 70 71 sxiv 71 72 xkblayout-state ··· 86 87 dunst 87 88 libnotify 88 89 (polybar.override { 89 - pulseSupport = true; 90 + pulseSupport = false; 90 91 nlSupport = true; 91 92 }) 92 93 papirus-icon-theme