diff options
Diffstat (limited to 'tv/2configs')
| -rw-r--r-- | tv/2configs/gitrepos.nix | 24 | ||||
| -rw-r--r-- | tv/2configs/hw/x220.nix | 9 | 
2 files changed, 33 insertions, 0 deletions
| diff --git a/tv/2configs/gitrepos.nix b/tv/2configs/gitrepos.nix index 95ab75b..59090c8 100644 --- a/tv/2configs/gitrepos.nix +++ b/tv/2configs/gitrepos.nix @@ -5,6 +5,29 @@ with import <stockholm/lib>;  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 = { @@ -22,6 +45,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; diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix index 699b4a8..61b4755 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 = [ | 
