2022-08-13 19:34:46 +00:00
|
|
|
# NixOS API Container
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
Configure your nixos modules, profiles & suites.
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
## nixos
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
hosts, modules, suites, and profiles for NixOS
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
submodule or path convertible to it
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
{}
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hostDefaults
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2022-08-13 19:34:46 +00:00
|
|
|
Defaults for all hosts.
|
|
|
|
the modules passed under hostDefaults will be exported
|
|
|
|
to the 'nixosModules' flake output.
|
|
|
|
They will also be added to all hosts.
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
submodule
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
{}
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hostDefaults.channelName
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
Channel this host should follow
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
channel defined in `channels`
|
|
|
|
|
|
|
|
## nixos.hostDefaults.exportedModules
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
modules to include in all hosts and export to nixosModules output
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
list of valid modules or anything convertible to it or path convertible to it
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
[]
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hostDefaults.externalModules
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2022-08-13 19:34:46 +00:00
|
|
|
The `externalModules` option has been removed.
|
|
|
|
Any modules that should be exported should be defined with the `exportedModules`
|
|
|
|
option and all other modules should just go into the `modules` option.
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
list of valid modules or anything convertible to it
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
[]
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hostDefaults.modules
|
2022-11-20 22:28:23 +00:00
|
|
|
|
2022-08-13 19:34:46 +00:00
|
|
|
modules to include that won't be exported
|
|
|
|
meant importing modules from external flakes
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
list of valid modules or anything convertible to it or path convertible to it
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
[]
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hostDefaults.system
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
system for this host
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
null or system defined in `supportedSystems`
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
null
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hosts
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
configurations to include in the nixosConfigurations output
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
attribute set of submodules
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
{}
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hosts.\<name\>.channelName
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
Channel this host should follow
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
null or channel defined in `channels`
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
null
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hosts.\<name\>.modules
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
modules to include
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
list of valid modules or anything convertible to it or path convertible to it
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
[]
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hosts.\<name\>.system
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
system for this host
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
null or system defined in `supportedSystems`
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
null
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.hosts.\<name\>.tests
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
tests to run
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
list of valid NixOS test or path convertible to its or anything convertible to it
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
[]
|
|
|
|
```
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Example*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
{"_type":"literalExpression","text":"[\n {\n name = \"testname1\";\n machine = { ... };\n testScript = ''\n # ...\n '';\n }\n ({ corutils, writers, ... }: {\n name = \"testname2\";\n machine = { ... };\n testScript = ''\n # ...\n '';\n })\n ./path/to/test.nix\n];\n"}
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.importables
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
Packages of paths to be passed to modules as `specialArgs`.
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
attribute set
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
{}
|
|
|
|
```
|
|
|
|
|
|
|
|
## nixos.importables.suites
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
collections of profiles
|
2022-08-13 19:34:46 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Type*_:
|
2022-08-13 19:34:46 +00:00
|
|
|
null or attribute set of list of paths or anything convertible to its or path convertible to it
|
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
_*Default*_
|
2022-08-13 19:34:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
null
|
|
|
|
```
|