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