From 63987be016717acfc6bbdde810bda129d97b1787 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 18 Oct 2024 17:53:15 +0200 Subject: docs(modules/home-manager): Add a TODO regarding a better error message --- modules/by-name/ho/home-manager/module.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/by-name') diff --git a/modules/by-name/ho/home-manager/module.nix b/modules/by-name/ho/home-manager/module.nix index d95bb6ac..4a8b351f 100644 --- a/modules/by-name/ho/home-manager/module.nix +++ b/modules/by-name/ho/home-manager/module.nix @@ -24,6 +24,10 @@ in { enable = lib.mkEnableOption "home-manager with custom config."; }; + # TODO: Find a way to throw this error below, when a user `enable`s a home-manager + # module, but not this module. Without having to plaster all the `home-manager` modules + # with `assert`s. <2024-10-18> + # builtins.throw "If you want use a home-manager module, you must also enable `soispha.home-manager.enable`."); config = lib.mkIf cfg.enable { home-manager = { useGlobalPkgs = true; -- cgit 1.4.1