5a1109111b
* hax * hax * shell monitoring * hax radicale! * hacking * haxor * hax * hack * feat: refactor paths etc for impermance * fix: restic * hax * more hax * feat: migrate z2m --------- Co-authored-by: Truxnell <9149206+truxnell@users.noreply.github.com>
32 lines
658 B
Text
32 lines
658 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"
|
|
}
|
|
}
|