feat(installer): refactor NixOS configurations to dynamically generate host systems
pytest / pytest (pull_request) Successful in 25s
build_systems / build-brain (pull_request) Successful in 45s
build_systems / build-bob (pull_request) Successful in 46s
build_systems / build-jeeves (pull_request) Successful in 2m30s
build_systems / build-rhapsody-in-green (pull_request) Successful in 56s
treefmt / nix fmt (pull_request) Successful in 5s
treefmt / nix fmt (push) Successful in 9s
pytest / pytest (push) Successful in 29s
build_systems / build-brain (push) Successful in 35s
build_systems / build-bob (push) Successful in 35s
build_systems / build-rhapsody-in-green (push) Successful in 48s
build_systems / build-jeeves (push) Successful in 2m28s
pytest / pytest (pull_request) Successful in 25s
build_systems / build-brain (pull_request) Successful in 45s
build_systems / build-bob (pull_request) Successful in 46s
build_systems / build-jeeves (pull_request) Successful in 2m30s
build_systems / build-rhapsody-in-green (pull_request) Successful in 56s
treefmt / nix fmt (pull_request) Successful in 5s
treefmt / nix fmt (push) Successful in 9s
pytest / pytest (push) Successful in 29s
build_systems / build-brain (push) Successful in 35s
build_systems / build-bob (push) Successful in 35s
build_systems / build-rhapsody-in-green (push) Successful in 48s
build_systems / build-jeeves (push) Successful in 2m28s
This commit was merged in pull request #32.
This commit is contained in:
@@ -95,37 +95,18 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations =
|
||||||
bob = lib.nixosSystem {
|
let
|
||||||
modules = [
|
hosts = builtins.attrNames (
|
||||||
./systems/bob
|
lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./systems)
|
||||||
];
|
);
|
||||||
specialArgs = { inherit inputs outputs; };
|
mkHost =
|
||||||
};
|
name:
|
||||||
brain = lib.nixosSystem {
|
lib.nixosSystem {
|
||||||
modules = [
|
modules = [ ./systems/${name} ];
|
||||||
./systems/brain
|
specialArgs = { inherit inputs outputs; };
|
||||||
];
|
};
|
||||||
specialArgs = { inherit inputs outputs; };
|
in
|
||||||
};
|
lib.genAttrs hosts mkHost;
|
||||||
jeeves = lib.nixosSystem {
|
|
||||||
modules = [
|
|
||||||
./systems/jeeves
|
|
||||||
];
|
|
||||||
specialArgs = { inherit inputs outputs; };
|
|
||||||
};
|
|
||||||
rhapsody-in-green = lib.nixosSystem {
|
|
||||||
modules = [
|
|
||||||
./systems/rhapsody-in-green
|
|
||||||
];
|
|
||||||
specialArgs = { inherit inputs outputs; };
|
|
||||||
};
|
|
||||||
iso = lib.nixosSystem {
|
|
||||||
modules = [
|
|
||||||
./systems/iso
|
|
||||||
];
|
|
||||||
specialArgs = { inherit inputs outputs; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user