blah
This commit is contained in:
21
modules/home/users/crumb/emacs/snippets/nix-mode/__module
Normal file
21
modules/home/users/crumb/emacs/snippets/nix-mode/__module
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- 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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user