From 246595dadde5970f0abc4bbdd4e79c101eb04818 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Fri, 4 Jul 2025 15:08:33 +0300 Subject: [PATCH] fix: persist correct password-store directory --- modules/home/security/password-store.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/home/security/password-store.nix b/modules/home/security/password-store.nix index c88bbe0..333f4ca 100644 --- a/modules/home/security/password-store.nix +++ b/modules/home/security/password-store.nix @@ -9,9 +9,11 @@ let mkEnableOption mkIf mkOption + removePrefix ; inherit (lib.types) nullOr path str; cfg = config.ataraxia.security.password-store; + homeDir = config.home.homeDirectory; in { options.ataraxia.security.password-store = { @@ -62,6 +64,6 @@ in settings.PASSWORD_STORE_DIR = cfg.store; }; - persist.state.directories = [ cfg.store ]; + persist.state.directories = [ (removePrefix "${homeDir}/" cfg.store) ]; }; }