add jsonConfig to services
This commit is contained in:
@@ -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
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user