nixos-servers/flake-parts/utils/default.nix

20 lines
413 B
Nix

{ nixpkgs, flake-utils, ... }:
let
systemAttrs = flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacypackages.${system};
lib = pkgs.lib;
in
{
net = import ./net.nix lib;
});
nonSystemAttrs = rec {
globals = import ./globals.nix;
imagePath = name: "nix:0${globals.imageDir}/${name}.tar";
};
allAttrs = systemAttrs // nonSystemAttrs;
in
allAttrs