Files
2025-04-12 18:19:12 -06:00

19 lines
425 B
Plaintext

# -*- 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
};
}