diff --git a/snippets/nix.json b/snippets/nix.json index 8cb7cce2..20d802a4 100644 --- a/snippets/nix.json +++ b/snippets/nix.json @@ -103,5 +103,25 @@ "prefix": "inherit", "body": ["inherit $1;"], "description": "inherit expression" - } + }, + "module": { + "prefix": "module"; + "body": [ + "{lib, pkgs, config}: {", + "", + " imports = [", + " $1", + " ];", + "", + " options = {", + " $2", + " };", + "", + " config = {", + " $3", + " };", + "};" + ], + "description": "Nix module system template", + }, }