feat(nvf): add flake snippet to nvf snippets
This commit is contained in:
parent
6a7e64b268
commit
e24714a3c7
1 changed files with 25 additions and 0 deletions
|
@ -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
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue