1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

nixos: pass system configuration to HM modules

This commit is contained in:
uosis 2020-07-09 17:47:16 -06:00 committed by Robert Helgesson
parent 0e9b6e6dc9
commit 7339784e07
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -9,7 +9,10 @@ let
extendedLib = import ../modules/lib/stdlib-extended.nix pkgs.lib; extendedLib = import ../modules/lib/stdlib-extended.nix pkgs.lib;
hmModule = types.submoduleWith { hmModule = types.submoduleWith {
specialArgs = { lib = extendedLib; }; specialArgs = {
lib = extendedLib;
nixosConfig = config;
};
modules = [ modules = [
({ name, ... }: { ({ name, ... }: {
imports = import ../modules/modules.nix { imports = import ../modules/modules.nix {