refactor(emacs): Update Nix module snippet
This commit is contained in:
@@ -7,15 +7,13 @@
|
||||
# --
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.${1:`this-current-file-name`};
|
||||
in {
|
||||
options.$1 = {
|
||||
enable = mkEnableOption "$2";
|
||||
enable = lib.mkEnableOption "$2";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
$3
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user