From 495871f182ff27dbd6f00b053f729f7a40c570c9 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 3 Jul 2020 21:36:51 +0200 Subject: tv x220: fix jumpy touchpad --- tv/2configs/hw/x220.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tv') diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix index 699b4a87e..61b475537 100644 --- a/tv/2configs/hw/x220.nix +++ b/tv/2configs/hw/x220.nix @@ -15,6 +15,15 @@ pkgs.tpacpi-bat ]; } + + # fix jumpy touchpad + # https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X220#X220_Touchpad_cursor_jump/imprecise + { + services.udev.extraHwdb = /* sh */ '' + touchpad:i8042:* + LIBINPUT_MODEL_LENOVO_X220_TOUCHPAD_FW81=1 + ''; + } ]; boot.extraModulePackages = [ -- cgit v1.2.3 From 53f52bb1b49894e62447f722faaf864b3a819215 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 13 Jul 2020 11:39:02 +0200 Subject: tv cgit: enable syntax highlighting --- tv/2configs/gitrepos.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'tv') diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 95ab75b3d..10bfb507d 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -22,6 +22,7 @@ let { ]; root-desc = "mostly krebs"; root-title = "repositories at ${config.krebs.build.host.name}"; + source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; }; }; repos = repos; -- cgit v1.2.3 From 2e26408bfecf27bc70f7b4955c499029bccfa9f4 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 13 Jul 2020 11:39:42 +0200 Subject: tv cgit: use algol_nu highlighting style --- tv/2configs/gitrepos.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tv') diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 10bfb507d..59090c8e3 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -5,6 +5,29 @@ with import ; let { body = { + + nixpkgs.config.packageOverrides = super: { + cgit = pkgs.symlinkJoin { + name = "${super.cgit.name}-tv"; + paths = [ + (pkgs.runCommand "${super.cgit.name}-tv-overrides" { + } /* sh */ '' + mkdir -p $out/lib/cgit/filters + cd $out/lib/cgit/filters + cp \ + ${super.cgit}/lib/cgit/filters/syntax-highlighting.py \ + ${super.cgit}/lib/cgit/filters/.syntax-highlighting.py-wrapped \ + . + sed -i "s:${super.cgit}:$out:" syntax-highlighting.py + sed -i ' + s:^\(formatter =\).*:\1 HtmlFormatter(style="algol_nu"): + ' .syntax-highlighting.py-wrapped + '') + super.cgit + ]; + }; + }; + krebs.git = { enable = true; cgit = { -- cgit v1.2.3