1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-04 08:01:02 +01:00
home-manager/tests/modules/programs/password-store/nondefault-path.nix

15 lines
328 B
Nix

let
somePath = "/some/random/path/I/store/pwds";
in
{
home.stateVersion = "25.11";
programs.password-store = {
enable = true;
settings.PASSWORD_STORE_DIR = somePath;
};
nmt.script = ''
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
'export PASSWORD_STORE_DIR="${somePath}"'
'';
}