diff --git a/modules/flake-parts/disko-configurations.nix b/modules/flake-parts/disko-configurations.nix new file mode 100644 index 00000000..335e4055 --- /dev/null +++ b/modules/flake-parts/disko-configurations.nix @@ -0,0 +1,18 @@ +{ lib, flake-parts-lib, inputs, ... }: + +{ + options = { + flake = flake-parts-lib.mkSubmoduleOptions { + diskoConfigurations = lib.mkOption { + type = with lib.types; attrsOf (inputs.disko.lib.topLevel); + default = { }; + description = '' + A set of [disko](https://github.com/nix-community/disko) + configurations readily available as part of the flake output to be + used by {program}`disko`. Could be useful as backup initialization + scripts for individual storage drives. + ''; + }; + }; + }; +}