about summary refs log tree commit diff
path: root/modules/shell/pass/default.nix
blob: 6c0d1fee55c472717ffc63d5fb1362c5354d72b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, pkgs, ... }:

{
  environment.systemPackages = [
    (pkgs.pass.withExtensions (es: with es; [ pass-otp ]))
  ];

  environment.extraInit = ''
    export PASSWORD_STORE_DIR="$HOME/state/pass"
  '';

  systemd.tmpfiles.rules = [
    "d ${config.users.users.qyliss.home}/state/pass 0700 qyliss qyliss"
  ];
}