parent
ed3d12bb5a
commit
6c782845a3
1 changed files with 11 additions and 13 deletions
|
@ -34,28 +34,26 @@ ls.add_snippets("nix", {
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "<>";
|
name = "<name>";
|
||||||
cfg = config.<>.<>;
|
cfg = config.<namespace>.<name>;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.<>.<> = {
|
options.<namespace>.<name> = {
|
||||||
enable = mkEnableOption "Enable ${name}";<>
|
enable = mkEnableOption "Enable ${name}";<more_options>
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
<>
|
<finish>
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
]],
|
]],
|
||||||
{
|
{
|
||||||
i(1),
|
finish = i(0),
|
||||||
i(2),
|
more_options = i(3),
|
||||||
rep(1),
|
name = i(1),
|
||||||
rep(2),
|
namespace = i(2),
|
||||||
rep(1),
|
},
|
||||||
i(3),
|
{ repeat_duplicates = true }
|
||||||
i(0),
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue