Expand xdg config

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-23 16:39:46 +03:00
parent e7d328cab5
commit 3d503fd1c2
11 changed files with 97 additions and 52 deletions

View File

@@ -1,5 +1,8 @@
{ user ? throw "user argument is required" }: { ... }:
{ user ? throw "user argument is required" }: { config, ... }:
let
hmConfig = config.home-manager.users."${user.name}";
in
{
home-manager.users."${user.name}" = {
programs.kitty = {
@@ -9,6 +12,6 @@
'';
};
home.persistence."/cache${user.home}".directories = [ ".cache/kitty" ];
home.persistence."/cache${user.home}".directories = [ "${hmConfig.xdg.relativeCacheHome}/kitty" ];
};
}