Home: Update paths module
This commit is contained in:
@ -13,6 +13,7 @@
|
|||||||
./latex
|
./latex
|
||||||
./neovim
|
./neovim
|
||||||
./nnn
|
./nnn
|
||||||
|
./paths
|
||||||
./rofi
|
./rofi
|
||||||
./waybar
|
./waybar
|
||||||
./zathura
|
./zathura
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
}: let
|
}: let
|
||||||
inherit (config) paths;
|
inherit (config) paths;
|
||||||
in {
|
in {
|
||||||
|
# The paths module doesn't use the "modules" namespace to keep the access shorter
|
||||||
options.paths = import ./options.nix {inherit lib mylib;};
|
options.paths = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf paths.enable {};
|
config = lib.mkIf paths.enable {};
|
||||||
|
@ -10,7 +10,6 @@ with mylib.modules; {
|
|||||||
nixflake = lib.mkOption {
|
nixflake = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
apply = toString;
|
apply = toString;
|
||||||
default = "${config.home.homeDirectory}/NixFlake";
|
|
||||||
example = "${config.home.homeDirectory}/NixFlake";
|
example = "${config.home.homeDirectory}/NixFlake";
|
||||||
description = "Location of the NixFlake working copy";
|
description = "Location of the NixFlake working copy";
|
||||||
};
|
};
|
||||||
@ -18,8 +17,7 @@ with mylib.modules; {
|
|||||||
dotfiles = lib.mkOption {
|
dotfiles = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
apply = toString;
|
apply = toString;
|
||||||
default = "${config.nixflake}/config";
|
example = "${config.home.homeDirectory}/NixFlake/config";
|
||||||
example = "${config.nixflake}/config";
|
|
||||||
description = "Location of the NixFlake working copy's config directory";
|
description = "Location of the NixFlake working copy's config directory";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user