Files
nixos/hosts/default.nix
T
Greg Hellings 348a1d7301
buildbot/nix-eval Build done. (1 warning)
buildbot/nix-build Build done.
buildbot/nix-build gitea:greg/nixos#checks.x86_64-linux.nixos-hermes Build done.
fix: get Hermes host built
2026-07-21 19:07:39 -05:00

64 lines
1.3 KiB
Nix

{
top,
lib',
metadata,
nixpkgs,
}:
let
inherit (top.nixunstable) lib;
unstable =
{
channel ? top.nixunstable,
extraMods ? [ ],
name,
hm ? top.hmunstable,
}:
let
inherit (metadata.hosts.${name}) system;
pkgs' = top.self.packages.${system};
in
channel.lib.nixosSystem {
pkgs = nixpkgs.${system};
specialArgs = {
inherit
metadata
top
lib'
pkgs'
;
};
modules = [
{
nixpkgs.hostPlatform = system;
networking.hostName = name;
}
# Imported ones
top.agenix.nixosModules.default
hm.nixosModules.home-manager
# Local ones
./baseline.nix
top.self.modules.nixosModule
]
++ extraMods;
};
in
(lib.genAttrs
(builtins.attrNames (lib.filterAttrs (_: v: v == "directory") (builtins.readDir ./unstable)))
(
name:
(unstable {
inherit name;
extraMods = [ ./unstable/${name} ];
})
)
)
// {
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
#nixos = wsl { name = "wsl"; };
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
#nixos-arm = wsl {
# name = "wsl";
# system = "aarch64-linux";
#};
}