1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00
flake-parts/modules/nixosConfigurations.nix

35 lines
713 B
Nix
Raw Normal View History

2022-05-25 14:36:33 +00:00
{ config, lib, flake-parts-lib, ... }:
2022-05-17 08:56:41 +00:00
let
inherit (lib)
mkOption
types
literalExpression
;
2022-05-25 14:36:33 +00:00
inherit (flake-parts-lib)
2022-05-17 08:56:41 +00:00
mkSubmoduleOptions
;
in
{
options = {
flake = mkSubmoduleOptions {
nixosConfigurations = mkOption {
type = types.lazyAttrsOf types.raw;
default = { };
description = ''
Instantiated NixOS configurations.
'';
example = literalExpression ''
{
my-machine = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./my-machine/nixos-configuration.nix
];
};
}
'';
};
};
};
}