From a6dcf54097dea6a223d47aa8e3139b39a14a59c2 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 17 Jan 2021 16:56:59 -0500 Subject: [PATCH] add module template --- modules/_template.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/_template.nix 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 ]; + }; +}