modularEffect
Example
hci-effects.modularEffect ({ pkgs, ... }: {
imports = [ hci-effects.modules.git-auth ];
inputs = [ pkgs.hello ]
effectScript = ''
hello
git status
'';
})
nix
For hci-effects, see Import hercules-ci-effects.
Parameter
modularEffect takes one parameter, which must be a module.
The module may set Core Options and/or import other modules using imports.
Return value
modularEffect returns an effect derivation, like mkEffect does.
1. The module system refers to the module system used by NixOS. It does not include anything specific to NixOS, but rather the features such as
imports, types, mkForce, etc.