add jsonConfig to services

This commit is contained in:
m3tam3re
2025-03-12 15:21:38 +01:00
parent b97263495b
commit aa1e617e3a
5 changed files with 57 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
# self-host-playbook-base/flake.nix
{
description = "Base configuration for self-host-playbook";
@@ -13,7 +12,11 @@
nixpkgs-unstable,
}: {
nixosModules = {
default = {tier ? "starter"}: {
default = {
tier ? "starter",
jsonConfig ? {},
}: {
# Add jsonConfig as an optional argument with a default empty attrset
config,
lib,
pkgs,
@@ -31,6 +34,7 @@
(import ./modules/services.nix {
inherit lib config pkgs;
tier = tier;
jsonConfig = jsonConfig; # Pass jsonConfig to services.nix
})
];
};