28 lines
598 B
Nix
28 lines
598 B
Nix
{ nixpkgs, ... }@inputs:
|
|
|
|
let
|
|
lib = nixpkgs.lib.extend (import ../lib);
|
|
in
|
|
rec {
|
|
toPartialNixosConfig =
|
|
{ hostname, system }:
|
|
{
|
|
name = hostname;
|
|
value = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
../hosts/${hostname}/hardware-configuration.nix
|
|
../hosts/${hostname}/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
compileSystems =
|
|
systems:
|
|
lib.right
|
|
builtins.listToAttrs
|
|
(map toPartialNixosConfig)
|
|
systems;
|
|
}
|