1

Home: Update paths module

This commit is contained in:
2025-03-16 14:51:49 +01:00
parent ffec4d7ade
commit 9cec539c23
3 changed files with 3 additions and 3 deletions

View File

@ -13,6 +13,7 @@
./latex
./neovim
./nnn
./paths
./rofi
./waybar
./zathura

View File

@ -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 {};

View File

@ -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";
};
}