Home: Update paths module
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
./latex
|
||||
./neovim
|
||||
./nnn
|
||||
./paths
|
||||
./rofi
|
||||
./waybar
|
||||
./zathura
|
||||
|
@ -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 {};
|
||||
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user