{ pkgs, config, ... }: { programs.password-store = { enable = true; settings = { PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store"; PASSWORD_STORE_GENERATED_LENGTH = "30"; PASSWORD_STORE_CHARACTER_SET = "a-zA-Z0-9~!@#$%^&*()-_=+[]{};:,.<>?"; PASSWORD_STORE_KEY = config.programs.gpg.settings.default-key; }; }; services.password-store-sync.enable = true; # Ensure the password store things are in the systemd session systemd.user.sessionVariables = config.programs.password-store.settings; }