1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-19 09:39:45 +01:00

nix-darwin: add modulesPath to specialArgs (#2375)

Same as 099cbcf13e, however now for
nix-darwin instead of NixOS.

Tested with `disabledModules = [ "programs/alacritty.nix" ];` and having an
error.
This commit is contained in:
Thiago Kenji Okada 2021-10-08 17:36:41 -03:00 committed by GitHub
parent d9fe208f3c
commit fd2f746016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ let
lib = extendedLib;
darwinConfig = config;
osConfig = config;
modulesPath = ../modules;
} // cfg.extraSpecialArgs;
modules = [
({ name, ... }: {
@ -62,7 +63,6 @@ in
extraSpecialArgs = mkOption {
type = types.attrs;
default = { };
example = literalExample "{ modulesPath = ../modules; }";
description = ''
Extra <literal>specialArgs</literal> passed to Home Manager.
'';