Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ self, inputs, lib, config, ...}: let inherit (lib) mapAttrs; inherit (config.nex.lib) readModules; systemModules = readModules (self + "/system-modules"); systemConfigs = lib.filterAttrs (name: val: val.systemManager != null) config.hosts;in { options = { nex = { systemConfigs = lib.mkOption { type = lib.types.attrs; default = {}; }; systemModules = lib.mkOption { type = lib.types.attrs; default = {}; }; }; }; config = { nex = { inherit systemModules systemConfigs; }; flake = { systemConfigs = mapAttrs ( name: systemConfig: inputs.system-manager.lib.makeSystemConfig { modules = [ config.nex.systemModules.default systemConfig.systemManager ]; extraSpecialArgs = { inherit (config.nex) systemModules; }; } ) config.nex.systemConfigs; }; };}