diff --git a/home/common/nix.nix b/home/common/nix.nix index bb55912..5afecae 100644 --- a/home/common/nix.nix +++ b/home/common/nix.nix @@ -14,7 +14,7 @@ in { }; to = { type = "git"; - url = "file://${config.home.homeDirectory}/nixfiles"; + url = "file://${config.nixfiles.path}"; }; }; }; diff --git a/home/default.nix b/home/default.nix index 3bb425d..333f850 100644 --- a/home/default.nix +++ b/home/default.nix @@ -61,5 +61,12 @@ in default = (lib.hasAttrByPath [ "nixfiles" "meta" "wayland" ] osConfig) && osConfig.nixfiles.meta.wayland; example = true; }; + path = lib.mkOption { + description = "The absolute path of the nixfiles flake"; + type = lib.types.str; + default = "${config.home.homeDirectory}/nixfiles"; + defaultText = "\${config.home.homeDirectory}/nixfiles"; + example = "/etc/nixos"; + }; }; }