mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
33 lines
842 B
Nix
33 lines
842 B
Nix
{ lib, name, systems, ... }: {
|
|
options = {
|
|
systems = lib.mkOption {
|
|
type = with lib.types; listOf str;
|
|
default = systems;
|
|
defaultText = "config.systems";
|
|
example = [ "x86_64-linux" "aarch64-linux" ];
|
|
description = ''
|
|
A list of platforms that the environment config is supposed to be
|
|
deployed on.
|
|
'';
|
|
};
|
|
|
|
modules = lib.mkOption {
|
|
type = with lib.types; listOf raw;
|
|
default = [ ];
|
|
description = ''
|
|
A list of modules specific for that environment.
|
|
'';
|
|
};
|
|
|
|
configName = lib.mkOption {
|
|
type = lib.types.nonEmptyStr;
|
|
default = name;
|
|
example = "plover";
|
|
description = ''
|
|
The name of the configuration to be used. Useful for creating variants
|
|
of the same declarative environment.
|
|
'';
|
|
};
|
|
};
|
|
}
|