Created
May 16, 2018 12:37
-
-
Save adrianparvino/3edccd0615d642742aceaab57e272e4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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