about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/shell/default.nix3
-rw-r--r--modules/shell/pass/default.nix11
2 files changed, 12 insertions, 2 deletions
diff --git a/modules/shell/default.nix b/modules/shell/default.nix
index e5ffa74e8606..61d10cda0680 100644
--- a/modules/shell/default.nix
+++ b/modules/shell/default.nix
@@ -1,7 +1,7 @@
 { pkgs, ... }:
 
 {
-  imports = [ ./git ./kakoune ./less ./lynx ./tmux ./zsh ];
+  imports = [ ./direnv ./git ./kakoune ./less ./lynx ./pass ./tmux ./zsh ];
 
   environment.systemPackages = with pkgs; [
     (aspellWithDicts (dicts: with dicts; [ en en-computers en-science eo ]))
@@ -20,7 +20,6 @@
     neovim
     nmap
     openssh
-    pass
     pv
     ranger
     silver-searcher
diff --git a/modules/shell/pass/default.nix b/modules/shell/pass/default.nix
new file mode 100644
index 000000000000..69312f2b9345
--- /dev/null
+++ b/modules/shell/pass/default.nix
@@ -0,0 +1,11 @@
+{ pkgs, ... }:
+
+{
+  environment.systemPackages = with pkgs; [ pass ];
+
+  environment.extraInit = ''
+    export PASSWORD_STORE_DIR="$HOME/state/pass"
+  '';
+
+  home.qyliss.dirs."state/pass" = {};
+}