refactor(emacs): Update Nix module snippet
This commit is contained in:
1 parent
bd8b3dff34
commit
a68f69c2e0
1 file changed
+2
-4
@@ -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