1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/packages/writing.nix

80 lines
2.1 KiB
Nix
Raw Normal View History

{ pkgs, lib, config, ... }:
2019-12-09 07:46:11 +01:00
let
nixpkgs-unstable = import <nixpkgs-unstable> {};
2020-10-28 20:25:26 +01:00
2019-12-09 07:46:11 +01:00
zoteroStyle = { name, sha256 }: {
name = "${name}.csl";
path = pkgs.fetchurl {
url = "https://www.zotero.org/styles/${name}";
inherit sha256;
};
};
cslDirectory = pkgs.linkFarm "citation-styles" [
(zoteroStyle {
name = "chicago-author-date-de";
sha256 = "0fz0xn46rkciblr34a7x2v60j0lbq9l3fmzi43iphph27m0czn6s";
})
(zoteroStyle {
name = "din-1505-2";
2020-11-05 21:28:23 +01:00
sha256 = "1pvy1b7qm13mnph7z365rrz1j082bl2y8ih73rhzd0zd6dz1jyjq";
})
(zoteroStyle {
name = "apa";
2020-11-05 21:28:23 +01:00
sha256 = "1878vxp0y0h05yzaghnd51n981623mxskw3lsdyzmffqhihvv111";
})
];
2020-06-10 17:37:25 +02:00
makeStardictDataDir = dicts:
pkgs.linkFarm "dictionaries" (map ({ name, path }: {
name = "dic/${name}";
inherit path;
}) dicts);
in {
environment.variables.STARDICT_DATA_DIR = toString (makeStardictDataDir [
{
name = "gr-de";
path = pkgs.fetchurl {
url = "http://tovotu.de/data/stardict/pape_gr-de.zip";
sha256 = "1d705y47b40vp0mg79vbwasw4y0i8fmnlwvf4x4ri0dkfqng9sky";
};
}
{
name = "la-de";
path = pkgs.fetchurl {
url = "http://tovotu.de/data/stardict/georges_lat-de.zip";
sha256 = "12n26nzwg28wn4zwv45mv0wkgy1jh1d8p0k6haamz9601cqq7hkj";
};
}
{
name = "de-la";
path = pkgs.fetchurl {
url = "http://tovotu.de/data/stardict/georges_de-lat.zip";
sha256 = "0inm6xn1lcnb851cj329n0v2vbfc1z1bxwhgsd8fnm0zxy3f3ifq";
};
}
]);
home-manager.users.me.home.file = {
".csl".source = cslDirectory;
".local/share/pandoc/csl".source = cslDirectory; # as of pandoc 2.11, it includes citeproc
};
2019-12-09 07:46:11 +01:00
2019-08-18 11:17:28 +02:00
environment.systemPackages = with pkgs; [
texlive.combined.scheme-full
2020-06-10 17:37:25 +02:00
(aspellWithDicts (dict: [ dict.de dict.en dict.en-computers ]))
2020-04-09 11:39:29 +02:00
haskellPackages.pandoc-citeproc
2020-11-01 15:12:08 +01:00
nur.repos.kmein.text2pdf
2021-03-19 16:58:39 +01:00
lowdown
2021-04-05 08:32:31 +02:00
glow # markdown to term
libreoffice
# gnumeric
2020-11-01 15:12:08 +01:00
dia
2021-01-15 14:09:06 +01:00
nixpkgs-unstable.pandoc
# proselint
2020-04-09 11:39:29 +02:00
asciidoctor
2019-08-18 11:17:28 +02:00
wordnet
2021-03-19 16:58:39 +01:00
# sdcv # stardict cli
2019-08-18 11:17:28 +02:00
];
}