diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 17:53:15 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-18 17:53:15 +0200 |
commit | 63987be016717acfc6bbdde810bda129d97b1787 (patch) | |
tree | 3ed9b99b42cdc9a8f2f87fe404d8c95d2d47c204 /modules/by-name/ho/home-manager | |
parent | refactor(modules): Move all system modules to `by-name` (diff) | |
download | nixos-config-63987be016717acfc6bbdde810bda129d97b1787.tar.gz nixos-config-63987be016717acfc6bbdde810bda129d97b1787.zip |
docs(modules/home-manager): Add a TODO regarding a better error message
Diffstat (limited to 'modules/by-name/ho/home-manager')
-rw-r--r-- | modules/by-name/ho/home-manager/module.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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; |