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

View File

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