Files
sydnix/modules/home/users/crumb/emacs/snippets/nix-mode/__module
Madeleine Sydney ef9943b707 blah
2025-03-27 05:56:05 -06:00

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