fix error
This commit is contained in:
@@ -27,13 +27,19 @@ in
|
|||||||
default = pkgs: pkgs.prettier;
|
default = pkgs: pkgs.prettier;
|
||||||
description = "The formatter function to use for formatting sops file";
|
description = "The formatter function to use for formatting sops file";
|
||||||
};
|
};
|
||||||
nixosModule = mkOption {
|
nixosModule = {
|
||||||
type = types.deferredModule;
|
default = mkOption {
|
||||||
readOnly = true;
|
type = types.functionTo types.attrs;
|
||||||
description = "NixOS module configuration for managing sops secrets.";
|
default = host: { };
|
||||||
|
description = "A function that takes a hostname and returns a NixOS module to apply to that host.";
|
||||||
|
};
|
||||||
|
network = mkOption {
|
||||||
|
type = types.functionTo types.attrs;
|
||||||
|
default = { config, ... }: { };
|
||||||
|
description = "A function that takes the NixOS configuration and returns a NixOS module to apply to the host based on its network configuration.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
secrets = builtins.fromJSON (builtins.readFile "${inputs.self}/${cfg.secretsDir}/secrets.json");
|
secrets = builtins.fromJSON (builtins.readFile "${inputs.self}/${cfg.secretsDir}/secrets.json");
|
||||||
|
|||||||
Reference in New Issue
Block a user