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": [ "body": [
"{ config, lib, ... }:", "{ config, lib, ... }:",
"let", "let",
" inherit (lib) mkEnableOption mkIf;", " inherit (lib) mkIf mkEnableOption;",
" cfg = config.$1;", " cfg = config.$1;",
"in", "in",
"{", "{",
" options.$2 = {", " options.$1 = {",
" enable = mkEnableOption \"$3\";", " enable = mkEnableOption \"$2\";",
" };", " $3",
"",
" config = mkIf cfg.enable {",
" $4",
" };", " };",
" config = mkIf cfg.enable {$4};",
"}" "}"
], ],
"description": "empty module" "description": "empty module"