# -*- 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, ... }: with lib; let cfg = config.${1:`this-current-file-name`}; in { options.$1 = { enable = mkEnableOption "$2"; }; config = mkIf cfg.enable { $3 }; }