1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29: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 = {
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.
'';