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": [
|
"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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue