pantheon/modules/configurations/nixos.nix
Mohammad Rafiq 3c4bfeece9
refactor(nixos): move nixosSystem config to lib
Moves the nixosSystem configuration logic to a library function for reuse.
2025-07-07 09:51:53 +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;
}