From fd2f746016e3d99bdc3c86736d30f2ca7594929a Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Fri, 8 Oct 2021 17:36:41 -0300 Subject: [PATCH] nix-darwin: add modulesPath to specialArgs (#2375) Same as 099cbcf13e8219f07b493980a66fe64df0e32d09, however now for nix-darwin instead of NixOS. Tested with `disabledModules = [ "programs/alacritty.nix" ];` and having an error. --- nix-darwin/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 5966826ce..f4b6ad7d1 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -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 specialArgs passed to Home Manager. '';