Home: Rename home/modules to home/homemodules
This commit is contained in:
15
home/homemodules/paths/default.nix
Normal file
15
home/homemodules/paths/default.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
config,
|
||||
nixosConfig,
|
||||
lib,
|
||||
mylib,
|
||||
pkgs,
|
||||
...
|
||||
}: 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 = {};
|
||||
}
|
||||
21
home/homemodules/paths/options.nix
Normal file
21
home/homemodules/paths/options.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules; {
|
||||
nixflake = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
apply = toString;
|
||||
example = "${config.home.homeDirectory}/NixFlake";
|
||||
description = "Location of the NixFlake working copy";
|
||||
};
|
||||
|
||||
dotfiles = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
apply = toString;
|
||||
example = "${config.home.homeDirectory}/NixFlake/config";
|
||||
description = "Location of the NixFlake working copy's config directory";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user