# nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of my nixos-config. # # You should have received a copy of the License along with this program. # If not, see . { self, system, openPRsNixpkgs, packageSets, libraries, modules, externalDependencies, externalBinaries, }: let hosts = libraries.extra.mkByName { useShards = false; baseDirectory = ./by-name; fileName = "configuration.nix"; }; generateHost = _: path: self.inputs.nixpkgs.lib.nixosSystem { specialArgs = { inherit libraries modules ; }; modules = [ { _module.args = { inherit # extra package sources openPRsNixpkgs packageSets # extra information system # nix registry self externalDependencies # bins # TODO: Integrate these into `pkgs/by-name` <2024-05-22> externalBinaries ; }; } path ../modules ../modules/common ]; }; generatedHosts = builtins.mapAttrs generateHost hosts; in generatedHosts