nixos-config/modules/flake-parts/deploy-rs-nodes.nix

26 lines
522 B
Nix
Raw Permalink Normal View History

2024-01-16 06:54:50 +00:00
{ lib, flake-parts-lib, ... }:
let
deployType = { config, lib, pkgs, ... }: {
options.nodes = lib.mkOption {
type = with lib.types; attrsOf anything;
description = ''
A set of deploy-rs nodes.
'';
};
};
in
{
options = {
flake = flake-parts-lib.mkSubmoduleOptions {
deploy = lib.mkOption {
type = with lib.types; submodule deployType;
default = { };
description = ''
An attribute set of deploy-rs nodes
'';
};
};
};
}