# -*- mode: snippet -*-
# name: Nix module
# uuid:
# key: __module
# condition: t
# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil) (this-current-file-name (file-name-base (buffer-file-name (current-buffer)))))
# --
{ config, lib, pkgs, ... }:

let cfg = config.${1:`this-current-file-name`};
in {
  options.$1 = {
    enable = lib.mkEnableOption "$2";
  };

  config = lib.mkIf cfg.enable {
    $3
  };
}