This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/.vscode/module.code-snippets
jahanson ca25688c2c
All checks were successful
Build / nix-build (native-x86_64, durincore) (pull_request) Successful in 7m46s
Build / nix-build (native-aarch64, varda) (pull_request) Successful in 1m29s
Mixing things around
2024-05-30 21:33:06 -05:00

32 lines
659 B
Text

{
"nix-module": {
"prefix": "nm",
"body": [
"{ lib",
", config",
", pkgs",
", ...",
"}:",
"with lib;",
"let",
" cfg = config.mySystem.${1}.${2};",
" app = \"${3}\"",
" appFolder = \"apps/${app}\";",
" persistentFolder = \"${config.mySystem.persistentFolder}/${appFolder}\";",
" user = app;",
" group = app;",
"in",
"{",
" options.mySystem.${1}.${2}.enable = mkEnableOption \"${4}\";",
"",
" config = mkIf cfg.enable {",
"",
" $5",
"",
" };",
"}",
""
],
"description": "nix-module"
}
}