summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-07-14 19:31:19 +0200
committertv <tv@krebsco.de>2020-07-14 19:31:19 +0200
commit75340366685c47ddc649bcbd1b06666e09d3cf85 (patch)
treec40e7b72d6d336c0c61ae3d94eb678c4273fce77 /lass/2configs
parentef4572145301e3daba853a1b67c963472fbb828c (diff)
parentdbee272de6f3dae261ac6e15992b91cd3c1d02ed (diff)
Merge remote-tracking branches 'gum/master' and 'prism/master'
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/baseX.nix36
-rw-r--r--lass/2configs/nfs-dl.nix8
2 files changed, 41 insertions, 3 deletions
diff --git a/lass/2configs/baseX.nix b/lass/2configs/baseX.nix
index 1185be9d4..baf93ffe5 100644
--- a/lass/2configs/baseX.nix
+++ b/lass/2configs/baseX.nix
@@ -91,6 +91,10 @@ in {
xorg.xhost
xsel
zathura
+ (pkgs.writeDashBin "screenshot" ''
+ ${pkgs.flameshot-once}/bin/flameshot-once
+ ${pkgs.klem}/bin/klem
+ '')
];
fonts.fonts = with pkgs; [
@@ -147,4 +151,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 -
+ '';
+ };
+ };
}
diff --git a/lass/2configs/nfs-dl.nix b/lass/2configs/nfs-dl.nix
index ba53321b9..91b026455 100644
--- a/lass/2configs/nfs-dl.nix
+++ b/lass/2configs/nfs-dl.nix
@@ -3,17 +3,19 @@
device = "prism.w:/export/download";
fsType = "nfs";
options = [
- "timeo=14"
+ #"timeo=14"
"noauto"
"noatime"
"nodiratime"
- "noac"
- "nocto"
+ #"noac"
+ #"nocto"
"x-systemd.automount"
"x-systemd.device-timeout=1"
"x-systemd.idle-timeout=1min"
"x-systemd.requires=retiolum.service"
"x-systemd.requires=wpa_supplicant.service"
+ "user"
+ "_netdev"
];
};
}