refactor: rename hostSpec to manifest and update references

This commit is contained in:
Mohammad Rafiq 2025-07-06 22:12:24 +08:00
parent 2dd8d0f73d
commit c49beb7c57
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -7,4 +7,4 @@ The list of generated files are:
- [docs/cheatsheet.md](docs/cheatsheet.md) - [docs/cheatsheet.md](docs/cheatsheet.md)
- [README.md](README.md) - [README.md](README.md)
## Structure ## Structure
The system configurations are defined in [`flake.hostSpec`](nix/hostSpec.nix). The system configurations are defined in [`flake.manifest`](nix/manifest.nix).

View file

@ -2,7 +2,7 @@
let let
inherit (cfg.lib) extractConfigurations; inherit (cfg.lib) extractConfigurations;
cfg = config.flake; cfg = config.flake;
hosts = cfg.hostSpec.hosts or { }; hosts = cfg.manifest.hosts or { };
in in
{ {
flake.nixosConfigurations = extractConfigurations "nixos/" hosts; flake.nixosConfigurations = extractConfigurations "nixos/" hosts;

View file

@ -8,7 +8,7 @@
''; '';
parts."Structure" = # markdown parts."Structure" = # markdown
'' ''
The system configurations are defined in [`flake.hostSpec`](nix/hostSpec.nix). The system configurations are defined in [`flake.manifest`](nix/manifest.nix).
''; '';
}; };

View file

@ -8,7 +8,7 @@ let
}; };
in in
{ {
flake.hostSpec.hosts = { flake.manifest.hosts = {
"nixos/test".extraCfg = testCfg; "nixos/test".extraCfg = testCfg;
"nixos/nemesis" = { "nixos/nemesis" = {
machine = { machine = {