diff options
author | lassulus <lassulus@lassul.us> | 2020-07-04 06:15:53 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-07-04 06:49:59 +0200 |
commit | 0caacbdf420e1da5da01353958f5bd082f77b884 (patch) | |
tree | 442620b345521ea9ec81f42dcf4ace46489bf2a9 /lass/2configs/baseX.nix | |
parent | d5c59a830346ffd75c5e973861ca00c5d0316b8e (diff) |
l: add klem service
Diffstat (limited to 'lass/2configs/baseX.nix')
-rw-r--r-- | lass/2configs/baseX.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lass/2configs/baseX.nix b/lass/2configs/baseX.nix index 1185be9d4..3376f5ea2 100644 --- a/lass/2configs/baseX.nix +++ b/lass/2configs/baseX.nix @@ -147,4 +147,36 @@ in { krebs.xresources.enable = true; lass.screenlock.enable = true; + + lass.klem = { + kpaste.script = pkgs.writeDash "kpaste-wrapper" '' + ${pkgs.kpaste}/bin/kpaste \ + | ${pkgs.coreutils}/bin/tail -1 \ + | ${pkgs.coreutils}/bin/tr -d '\r\n' + ''; + go = { + target = "STRING"; + script = "${pkgs.goify}/bin/goify"; + }; + "go.lassul.us" = { + target = "STRING"; + script = pkgs.writeDash "go.lassul.us" '' + export GO_HOST='go.lassul.us' + ${pkgs.goify}/bin/goify + ''; + }; + qrcode = { + target = "image"; + script = pkgs.writeDash "zbar" '' + ${pkgs.zbar}/bin/zbarimg -q - + ''; + }; + ocr = { + target = "image"; + script = pkgs.writeDash "gocr" '' + ${pkgs.netpbm}/bin/pngtopnm - \ + | ${pkgs.gocr}/bin/gocr - + ''; + }; + }; } |