mirror of
https://github.com/nix-community/home-manager
synced 2024-12-20 08:49:47 +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:
parent
d9fe208f3c
commit
fd2f746016
1 changed files with 1 additions and 1 deletions
|
@ -13,6 +13,7 @@ let
|
||||||
lib = extendedLib;
|
lib = extendedLib;
|
||||||
darwinConfig = config;
|
darwinConfig = config;
|
||||||
osConfig = config;
|
osConfig = config;
|
||||||
|
modulesPath = ../modules;
|
||||||
} // cfg.extraSpecialArgs;
|
} // cfg.extraSpecialArgs;
|
||||||
modules = [
|
modules = [
|
||||||
({ name, ... }: {
|
({ name, ... }: {
|
||||||
|
@ -62,7 +63,6 @@ in
|
||||||
extraSpecialArgs = mkOption {
|
extraSpecialArgs = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = { };
|
default = { };
|
||||||
example = literalExample "{ modulesPath = ../modules; }";
|
|
||||||
description = ''
|
description = ''
|
||||||
Extra <literal>specialArgs</literal> passed to Home Manager.
|
Extra <literal>specialArgs</literal> passed to Home Manager.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue