nixos: pass system configuration to HM modules
This commit is contained in:
parent
0e9b6e6dc9
commit
7339784e07
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue