mirror of
https://github.com/kmein/niveum
synced 2026-03-22 04:41:07 +01:00
Compare commits
3 Commits
b07d74c72a
...
ce17c069e5
| Author | SHA1 | Date | |
|---|---|---|---|
| ce17c069e5 | |||
| 4c730f9730 | |||
| 39847fc8fe |
@@ -134,7 +134,17 @@ in {
|
||||
environment.systemPackages = [pkgs.neomutt];
|
||||
environment.shellAliases.mua = "${pkgs.neomutt}/bin/neomutt -f ${mainMailbox}←";
|
||||
|
||||
home-manager.users.me.xdg.configFile."neomutt/neomuttrc".text = ''
|
||||
home-manager.users.me.xdg.configFile."neomutt/neomuttrc".text = let
|
||||
as-pdf = pkgs.writers.writeDash "as-pdf" ''
|
||||
d=$(mktemp -d)
|
||||
trap clean EXIT
|
||||
clean() {
|
||||
rm -rf "$d"
|
||||
}
|
||||
${pkgs.libreoffice}/bin/libreoffice --headless --convert-to pdf "$1" --outdir "$d"
|
||||
${pkgs.zathura}/bin/zathura "$d"/*.pdf
|
||||
'';
|
||||
in ''
|
||||
set mailcap_path = ${
|
||||
pkgs.writeText "mailcap" ''
|
||||
text/plain; $EDITOR %s ;
|
||||
@@ -145,6 +155,8 @@ in {
|
||||
application/pdf; ${pkgs.zathura}/bin/zathura %s ;
|
||||
application/pgp-encrypted; ${pkgs.gnupg}/bin/gpg -d '%s'; copiousoutput;
|
||||
application/pgp-keys; ${pkgs.gnupg}/bin/gpg --import '%s'; copiousoutput;
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document; ${as-pdf} %s;
|
||||
application/vnd.oasis.opendocument.text; ${as-pdf} %s;
|
||||
application/vnd.openxmlformats*; ${pkgs.libreoffice}/bin/soffice '%s';
|
||||
''
|
||||
}:$mailcap_path
|
||||
|
||||
@@ -95,6 +95,7 @@ in {
|
||||
dos2unix
|
||||
genpass # generate passwords
|
||||
ncdu # ncurses disk usage
|
||||
rmlint # remove duplicate files
|
||||
python3Packages.jsonschema # json validation
|
||||
jq # json toolkit
|
||||
pup # html toolkit
|
||||
@@ -151,6 +152,7 @@ in {
|
||||
scripts.showkeys-toggle
|
||||
scripts.kirciuoklis
|
||||
scripts.favicon
|
||||
scripts.heuretes
|
||||
scripts.ipa # XSAMPA to IPA converter
|
||||
scripts.playlist
|
||||
scripts.mpv-tv
|
||||
|
||||
@@ -445,6 +445,16 @@ in
|
||||
ln -f $filename files
|
||||
'';
|
||||
|
||||
heuretes = let
|
||||
database = pkgs.fetchurl {
|
||||
url = "http://c.krebsco.de/greek.csv";
|
||||
hash = "sha256-SYL10kerNI0HzExG6JXh765+CBBCHLO95B6OKErQ/sU=";
|
||||
};
|
||||
in
|
||||
pkgs.writers.writeDashBin "heuretes" ''
|
||||
${pkgs.xsv}/bin/xsv search -s simple "$*" ${database} | ${pkgs.xsv}/bin/xsv table
|
||||
'';
|
||||
|
||||
# https://nitter.net/igor_chubin/status/1557793569104183298
|
||||
stackoverflow = pkgs.writers.writeDashBin "so" ''
|
||||
IFS=+
|
||||
|
||||
Reference in New Issue
Block a user