pantheon/modules/configurations/nixos.nix
Mohammad Rafiq 90899b5d37
refactor(nixos): move nixosSystem config to lib
Moves the nixosSystem configuration logic to a library function for reuse.
2025-07-07 17:42:30 +08:00

9 lines
198 B
Nix

{ config, ... }:
let
inherit (cfg.lib) extractConfigurations;
cfg = config.flake;
hosts = cfg.hostSpec.hosts or { };
in
{
flake.nixosConfigurations = extractConfigurations "nixos/" hosts;
}