From 3a85c6891dc862ec39ccd53dbd7424b8b5264a34 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 26 Jun 2022 13:49:38 +0200 Subject: ... --- accounts/gkleen@sif/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'accounts/gkleen@sif/default.nix') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 5045dacc..892cd58b 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -359,6 +359,31 @@ in { }; }; + xdg.dataFile = { + "pandoc/abbreviations" = { + source = pkgs.runCommand "pandoc-abbreviations" { + buildInputs = [ pkgs.pandoc pkgs.coreutils ]; + } (let + germanAbbrevs = pkgs.fetchFromGitHub { + owner = "jfilter"; + repo = "german-abbreviations"; + rev = "8eb9dae93b6f05d7c53374cd217ab2dc89558e0c"; + sha256 = "SaD3tSqzen6Y3SPICe6/9vhe4iMHlArZ3kFQaEk7Hps="; + }; + in '' + cat \ + <(pandoc --print-default-data-file=abbreviations) \ + <(grep -E '^[^ ]+\.$' ${germanAbbrevs}/german_abbreviations.txt) \ + ${pkgs.writeText "abbrevs.txt" '' + i.A. + d.h. + D.h. + ''} \ + | sort | uniq >$out + ''); + }; + }; + fonts.fontconfig.enable = true; systemd.user = import ./systemd.nix inputs; -- cgit v1.2.3