mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
26 lines
522 B
Nix
26 lines
522 B
Nix
|
{ 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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|