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

nixos: add modulesPath to specialArgs

Fixes #1792
This commit is contained in:
Naïm Favier 2021-09-29 09:14:05 +02:00 committed by Robert Helgesson
parent 179ce0aacf
commit 099cbcf13e
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -12,6 +12,7 @@ let
specialArgs = { specialArgs = {
lib = extendedLib; lib = extendedLib;
nixosConfig = config; nixosConfig = config;
modulesPath = ../modules;
} // cfg.extraSpecialArgs; } // cfg.extraSpecialArgs;
modules = [ modules = [
({ name, ... }: { ({ name, ... }: {
@ -72,7 +73,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.
''; '';