pantheon/nix/lib/default.nix
Mohammad Rafiq f71c65f639
refactor(nixos): simplify configurations.nix and lib
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.
2025-07-07 09:51:53 +08:00

9 lines
149 B
Nix

{ lib, ... }:
let
inherit (lib.attrsets) concatMapAttrs;
in
{
flake.lib = {
flattenAttrs = attrset: concatMapAttrs (_: v: v) attrset;
};
}