diff --git a/modules/_template.nix b/modules/_template.nix new file mode 100644 index 0000000..07db0f0 --- /dev/null +++ b/modules/_template.nix @@ -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 ]; + }; +}