Created
May 29, 2020 07:16
-
-
Save LnL7/50b916fdf1bc25e0f24be43cc48b6a4f to your computer and use it in GitHub Desktop.
This file contains 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
{ config, lib, ... }: | |
{ | |
imports = [ ./example-module.nix ]; | |
example.enable = true; | |
} |
This file contains 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
{ config, lib, ... }: | |
with lib; | |
{ | |
options = { | |
example.enable = mkOption { | |
type = types.bool; | |
default = false; | |
}; | |
}; | |
config = mkIf config.example.enable { | |
# stuff... | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment