summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-06-26 13:49:38 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-06-26 13:49:38 +0200
commit3a85c6891dc862ec39ccd53dbd7424b8b5264a34 (patch)
treede193dd971a33812fea8c634819f10279ebaa403 /accounts
parent9342cee52c63d50234db346ca0909caba0f94475 (diff)
downloadnixos-3a85c6891dc862ec39ccd53dbd7424b8b5264a34.tar
nixos-3a85c6891dc862ec39ccd53dbd7424b8b5264a34.tar.gz
nixos-3a85c6891dc862ec39ccd53dbd7424b8b5264a34.tar.bz2
nixos-3a85c6891dc862ec39ccd53dbd7424b8b5264a34.tar.xz
nixos-3a85c6891dc862ec39ccd53dbd7424b8b5264a34.zip
...
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/default.nix25
1 files changed, 25 insertions, 0 deletions
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 {
359 }; 359 };
360 }; 360 };
361 361
362 xdg.dataFile = {
363 "pandoc/abbreviations" = {
364 source = pkgs.runCommand "pandoc-abbreviations" {
365 buildInputs = [ pkgs.pandoc pkgs.coreutils ];
366 } (let
367 germanAbbrevs = pkgs.fetchFromGitHub {
368 owner = "jfilter";
369 repo = "german-abbreviations";
370 rev = "8eb9dae93b6f05d7c53374cd217ab2dc89558e0c";
371 sha256 = "SaD3tSqzen6Y3SPICe6/9vhe4iMHlArZ3kFQaEk7Hps=";
372 };
373 in ''
374 cat \
375 <(pandoc --print-default-data-file=abbreviations) \
376 <(grep -E '^[^ ]+\.$' ${germanAbbrevs}/german_abbreviations.txt) \
377 ${pkgs.writeText "abbrevs.txt" ''
378 i.A.
379 d.h.
380 D.h.
381 ''} \
382 | sort | uniq >$out
383 '');
384 };
385 };
386
362 fonts.fontconfig.enable = true; 387 fonts.fontconfig.enable = true;
363 388
364 systemd.user = import ./systemd.nix inputs; 389 systemd.user = import ./systemd.nix inputs;