add module template

This commit is contained in:
Sean Buckley 2021-01-17 16:56:59 -05:00
parent 7e19a91f06
commit a6dcf54097

16
modules/_template.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig._options_name_;
in
{
options.sconfig._options_name_ = lib.mkEnableOption "Do a Barrel Roll";
options.sconfig._options_name_ = lib.mkOption {
default = true;
type = lib.types.bool;
description = "Do a Barrel Roll";
};
config = lib.mkIf cfg {
environment.systemPackages = with pkgs; [ hello ];
};
}