This commit refactors configurations.nix and lib/default.nix by removing the extractConfigurations function and related code from lib/default.nix, and moving the NixOS system building logic directly into configurations.nix. It also changes the structure of hosts in manifest.nix to use a hosts.nixos attribute.
9 lines
149 B
Nix
9 lines
149 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib.attrsets) concatMapAttrs;
|
|
in
|
|
{
|
|
flake.lib = {
|
|
flattenAttrs = attrset: concatMapAttrs (_: v: v) attrset;
|
|
};
|
|
}
|