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

21 lines
413 B
Nix
Raw Normal View History

2024-09-07 10:39:30 +00:00
{ 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