fix: persist correct password-store directory

This commit is contained in:
Dmitriy Kholkin 2025-07-04 15:08:33 +03:00
parent 6a794eb46f
commit 246595dadd
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -9,9 +9,11 @@ let
mkEnableOption mkEnableOption
mkIf mkIf
mkOption mkOption
removePrefix
; ;
inherit (lib.types) nullOr path str; inherit (lib.types) nullOr path str;
cfg = config.ataraxia.security.password-store; cfg = config.ataraxia.security.password-store;
homeDir = config.home.homeDirectory;
in in
{ {
options.ataraxia.security.password-store = { options.ataraxia.security.password-store = {
@ -62,6 +64,6 @@ in
settings.PASSWORD_STORE_DIR = cfg.store; settings.PASSWORD_STORE_DIR = cfg.store;
}; };
persist.state.directories = [ cfg.store ]; persist.state.directories = [ (removePrefix "${homeDir}/" cfg.store) ];
}; };
} }