fix: persist correct password-store directory
This commit is contained in:
parent
6a794eb46f
commit
246595dadd
@ -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) ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user