summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-06-18 16:06:37 +0200
committerlassulus <lass@lassul.us>2017-06-18 16:06:37 +0200
commit5adfde5e0d1fd9e31b2adf7af0590e3e2fff1656 (patch)
tree04df8e9f789381f1e0329b7288790a634a794a84 /krebs
parent501726d3841f365a0c339ef0aa8edc455f1c6d7e (diff)
pkgs: init brain
Diffstat (limited to 'krebs')
-rw-r--r--krebs/5pkgs/simple/brain/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/brain/default.nix b/krebs/5pkgs/simple/brain/default.nix
new file mode 100644
index 000000000..079db825f
--- /dev/null
+++ b/krebs/5pkgs/simple/brain/default.nix
@@ -0,0 +1,12 @@
+{ pass, writeOut, writeDash, ... }:
+
+writeOut "brain" {
+ "/bin/brain-pass".link = writeDash "brain-pass" ''
+ PASSWORD_STORE_DIR=$HOME/brain \
+ exec ${pass}/bin/pass $@
+ '';
+ "/bin/brain-passmenu".link = writeDash "brain-passmenu" ''
+ PASSWORD_STORE_DIR=$HOME/brain \
+ exec ${pass}/bin/passmenu $@
+ '';
+}