Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Created May 16, 2018 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianparvino/3edccd0615d642742aceaab57e272e4c to your computer and use it in GitHub Desktop.
Save adrianparvino/3edccd0615d642742aceaab57e272e4c to your computer and use it in GitHub Desktop.
{ lib, config, ... }:
with lib;
{
options.machine = mkOption {
default = null;
type = types.nullOr types.attr;
};
config = mkIf config.enableFoo {
${config.machine}.services.foo.enable = true;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment