1

Home: Rename home/modules to home/homemodules

This commit is contained in:
2026-01-18 15:34:36 +01:00
parent 25e9128875
commit d12b247368
117 changed files with 1 additions and 1 deletions

View 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 = {};
}

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