feat(nvf): add flake snippet to nvf snippets

This commit is contained in:
Mohammad Rafiq 2025-07-07 14:28:47 +08:00
parent 6a7e64b268
commit e24714a3c7
No known key found for this signature in database

View file

@ -22,6 +22,31 @@
} }
''; '';
} }
{
trigger = "flake";
body = # nix
''
{ config, ... }:
let
cfg = config.flake;
in
{
flake.modules.nixos.default =
{ config, ...}:
{
imports = [
$1
];
options = {
$2
};
config = {
$3
};
};
}
'';
}
]; ];
}; };
}; };