mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-28 19:16:14 +01:00
30 lines
847 B
Nix
30 lines
847 B
Nix
|
# copied straight from https://github.com/hercules-ci/flake-parts/blob/main/modules/nixosConfigurations.nix
|
||
|
{ lib, flake-parts-lib, ... }:
|
||
|
let
|
||
|
inherit (lib)
|
||
|
mkOption
|
||
|
types
|
||
|
literalExpression
|
||
|
;
|
||
|
inherit (flake-parts-lib)
|
||
|
mkSubmoduleOptions
|
||
|
;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
flake = mkSubmoduleOptions {
|
||
|
nixngConfigurations = mkOption {
|
||
|
type = types.lazyAttrsOf types.raw;
|
||
|
default = { };
|
||
|
description = ''
|
||
|
Instantiated NixNG configurations.
|
||
|
`nixngConfigurations` is for specific machines. If you want to expose
|
||
|
reusable configurations, add them to [`nixosModules`](#opt-flake.nixosModules)
|
||
|
in the form of modules (no `lib.nixosSystem`), so that you can reference
|
||
|
them in this or another flake's `nixngConfigurations`.
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|