diff --git a/modules/home-manager/rebuild.nix b/modules/home-manager/rebuild.nix index 2c4bd32..c12f976 100644 --- a/modules/home-manager/rebuild.nix +++ b/modules/home-manager/rebuild.nix @@ -6,7 +6,7 @@ options = { homeManagerFlakeDir = lib.mkOption { type = lib.types.str; - default = "~/.config/home-manager/jsl-home"; + default = "${config.xdg.configHome}/home-manager"; description = "Path to the home-manager flake directory."; }; }; diff --git a/modules/hosts/john-pc-ubuntu.nix b/modules/hosts/john-pc-ubuntu.nix index b689448..4bd454a 100644 --- a/modules/hosts/john-pc-ubuntu.nix +++ b/modules/hosts/john-pc-ubuntu.nix @@ -20,7 +20,7 @@ # Include another inline module to set the options created through the jsl-home modules ({ config, ... }: { - homeManagerFlakeDir = "~/.config/home-manager/jsl-dendritic"; + homeManagerFlakeDir = "${config.xdg.configHome}/home-manager/jsl-dendritic"; docker.enable = true; ssh.matchSets = { certs = true;