user/aerc: use unstable package

This commit is contained in:
Dmitriy Pleshevskiy 2023-06-07 23:44:32 +03:00
parent 4e6fff448d
commit d3f58b279e
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 18 additions and 13 deletions

View file

@ -215,11 +215,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1684824189, "lastModified": 1686168915,
"narHash": "sha256-k3nCkn5Qy67rCguuw6YkGuL6hOUNRKxQoKOjnapk5sU=", "narHash": "sha256-zV5lh3PGKcI8W7+5bXSRsCetfsi6x10Xvojpk5HAQHU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "58eb968c21d309a6c2b020ea8d64e25c38ceebba", "rev": "cc6745b35fefe48624ebf573382e1e0e4a6fe85e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -468,11 +468,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1684879512, "lastModified": 1686089707,
"narHash": "sha256-BoAOf19Dshtfu6BDPznrKO97oeCkXlYfa1Hyt0Qv8VU=", "narHash": "sha256-LTNlJcru2qJ0XhlhG9Acp5KyjB774Pza3tRH0pKIb3o=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e6e049b7a24decd1f0caee8b035913795697c699", "rev": "af21c31b2a1ec5d361ed8050edd0303c31306397",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -484,11 +484,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1684782344, "lastModified": 1686059680,
"narHash": "sha256-SHN8hPYYSX0thDrMLMWPWYulK3YFgASOrCsIL3AJ78g=", "narHash": "sha256-sp0WlCIeVczzB0G8f8iyRg3IYW7KG31mI66z7HIZwrI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8966c43feba2c701ed624302b6a935f97bcbdf88", "rev": "a558f7ac29f50c4b937fb5c102f587678ae1c9fb",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
let let
exec = cmd: ":${cmd}<Enter>"; exec = cmd: ":${cmd}<Enter>";
@ -22,14 +22,14 @@ in
# See: https://git.sbruder.de/simon/nixos-config/src/branch/master/users/simon/modules/mail/aerc/default.nix # See: https://git.sbruder.de/simon/nixos-config/src/branch/master/users/simon/modules/mail/aerc/default.nix
programs.aerc = { programs.aerc = {
enable = true; enable = true;
# See: https://man.archlinux.org/man/aerc-config.5.en package = pkgs.unstable.aerc;
# https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-config.5.scd
extraConfig = { extraConfig = {
general = { general = {
unsafe-accounts-conf = true; unsafe-accounts-conf = true;
}; };
ui = { ui = {
index-format = "%-17.17D %-20.20n %Z %-20.20g %s";
# See https://godoc.org/time#Time.Format # See https://godoc.org/time#Time.Format
timestamp-format = "2006-01-02 15:04 MST"; timestamp-format = "2006-01-02 15:04 MST";
this-day-time-format = "15:04"; this-day-time-format = "15:04";
@ -40,13 +40,14 @@ in
border-char-horizontal = ""; border-char-horizontal = "";
fuzzy-complete = true; fuzzy-complete = true;
new-message-bell = true; new-message-bell = true;
index-columns = "date<20,from<30,flags>4,subject<*";
column-from = "{{ .From | emails | join \", \" }}";
}; };
statusline = { statusline = {
display-mode = "icon"; display-mode = "icon";
}; };
# https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-config.5.scd
filters = { filters = {
".headers" = "colorize"; ".headers" = "colorize";
"text/html" = "html | colorize"; "text/html" = "html | colorize";
@ -55,6 +56,10 @@ in
# "text/*" = "${pkgs.bat}/bin/bat -fpp --file-name='$AERC_FILENAME'"; # "text/*" = "${pkgs.bat}/bin/bat -fpp --file-name='$AERC_FILENAME'";
"message/delivery-status" = "cat | colorize"; "message/delivery-status" = "cat | colorize";
}; };
hooks = {
mail-received = "notify-send \"New mail from $AERC_FROM_NAME\" \"$AERC_SUBJECT\"";
};
}; };
extraBinds = { extraBinds = {
messages = lib.mkMerge [ messages = lib.mkMerge [