refactor(packages/snippets): reduce scope of empty module

This commit is contained in:
Mohammad Rafiq 2025-06-16 17:46:02 +08:00
parent 59031cd01b
commit 9f6b094daa
No known key found for this signature in database

View file

@ -4,17 +4,15 @@
"body": [
"{ config, lib, ... }:",
"let",
" inherit (lib) mkEnableOption mkIf;",
" inherit (lib) mkIf mkEnableOption;",
" cfg = config.$1;",
"in",
"{",
" options.$2 = {",
" enable = mkEnableOption \"$3\";",
" };",
"",
" config = mkIf cfg.enable {",
" $4",
" options.$1 = {",
" enable = mkEnableOption \"$2\";",
" $3",
" };",
" config = mkIf cfg.enable {$4};",
"}"
],
"description": "empty module"