diff --git a/home/modules/default.nix b/home/modules/default.nix index 57de4295..bad336e3 100644 --- a/home/modules/default.nix +++ b/home/modules/default.nix @@ -13,6 +13,7 @@ ./latex ./neovim ./nnn + ./paths ./rofi ./waybar ./zathura diff --git a/home/modules/paths/default.nix b/home/modules/paths/default.nix index 207b0a42..8dce51b5 100644 --- a/home/modules/paths/default.nix +++ b/home/modules/paths/default.nix @@ -8,6 +8,7 @@ }: let inherit (config) paths; in { + # The paths module doesn't use the "modules" namespace to keep the access shorter options.paths = import ./options.nix {inherit lib mylib;}; config = lib.mkIf paths.enable {}; diff --git a/home/modules/paths/options.nix b/home/modules/paths/options.nix index 3c30f16b..a8d808b6 100644 --- a/home/modules/paths/options.nix +++ b/home/modules/paths/options.nix @@ -10,7 +10,6 @@ with mylib.modules; { nixflake = lib.mkOption { type = lib.types.path; apply = toString; - default = "${config.home.homeDirectory}/NixFlake"; example = "${config.home.homeDirectory}/NixFlake"; description = "Location of the NixFlake working copy"; }; @@ -18,8 +17,7 @@ with mylib.modules; { dotfiles = lib.mkOption { type = lib.types.path; apply = toString; - default = "${config.nixflake}/config"; - example = "${config.nixflake}/config"; + example = "${config.home.homeDirectory}/NixFlake/config"; description = "Location of the NixFlake working copy's config directory"; }; }