From a180a74cebdcdc4ff098dbe480bf44f542a97d68 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Mon, 22 Aug 2022 11:59:41 +0200 Subject: [PATCH] install xsel --- home/desktop-xmonad/common.nix | 2 +- home/git/woodpecker-cli.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 home/git/woodpecker-cli.nix diff --git a/home/desktop-xmonad/common.nix b/home/desktop-xmonad/common.nix index a3e5c1e..bbfc28f 100644 --- a/home/desktop-xmonad/common.nix +++ b/home/desktop-xmonad/common.nix @@ -10,7 +10,7 @@ in { options = [ "caps:escape" ]; variant = "altgr-intl"; }; - packages = [ obtoxmd pkgs.openbox ]; + packages = [ obtoxmd pkgs.openbox pkgs.xsel ]; file = { ".xmonad/icons/3cols.xpm".source = ./icons/3cols.xpm; ".xmonad/icons/float.xpm".source = ./icons/float.xpm; diff --git a/home/git/woodpecker-cli.nix b/home/git/woodpecker-cli.nix new file mode 100644 index 0000000..a7229e4 --- /dev/null +++ b/home/git/woodpecker-cli.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: + +let + hostname = "woodpecker.monotremata.xyz"; + shell = "${pkgs.dash}/bin/dash"; + pass = "${pkgs.pass}/bin/pass"; + woodpecker-cli = "${pkgs.woodpecker-cli}/bin/woodpecker-cli"; +in pkgs.writeScriptBin "woodpecker-cli" '' + #!${shell} + WOODPECKER_SERVER="https://${hostname}" + WOODPECKER_TOKEN=$(${pass} "${hostname}/token") + export WOODPECKER_SERVER + export WOODPECKER_TOKEN + ${woodpecker-cli} "$@" +''