2.home-manager/tests/modules/programs/password-store/old-default-partial-settings.nix
Austin Horstman 1eb0549a1a password-store: silence settings default warning
Use the deferred state-version helper mode for programs.password-store.settings
so explicit empty and explicit legacy values silence the warning correctly,
while partial legacy-era settings still inherit PASSWORD_STORE_DIR until the
user resolves the migration.

Add integration coverage for password-store and pass-secret-service to verify
legacy, explicit empty, explicit legacy, and partial-settings behavior.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-03-24 14:08:36 -05:00

15 lines
405 B
Nix

{ config, ... }:
{
home.stateVersion = "25.05"; # <= 25.11
programs.password-store = {
enable = true;
settings.PASSWORD_STORE_KEY = "12345678";
};
nmt.script = ''
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh \
'^export PASSWORD_STORE_DIR='
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
'export PASSWORD_STORE_KEY="12345678"'
'';
}