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>
15 lines
405 B
Nix
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"'
|
|
'';
|
|
}
|