refactor(packages/snippets): reduce scope of empty module
This commit is contained in:
parent
59031cd01b
commit
9f6b094daa
1 changed files with 5 additions and 7 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue