Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created May 29, 2020 07:16
Show Gist options
  • Save LnL7/50b916fdf1bc25e0f24be43cc48b6a4f to your computer and use it in GitHub Desktop.
Save LnL7/50b916fdf1bc25e0f24be43cc48b6a4f to your computer and use it in GitHub Desktop.
{ config, lib, ... }:
{
imports = [ ./example-module.nix ];
example.enable = true;
}
{ 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