You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
server/nix/lib/default.nix

20 lines
467 B
Nix

{ inputs, lib, ... }@flakeArg:
let
nixpkgs = inputs.nixpkgs;
in
nixpkgs.lib
// {
supportedSystems = builtins.attrNames inputs.nixpkgs.legacyPackages;
systemSpecificVars = system: {
pkgs = import inputs.nixpkgs { inherit system; };
pkgs_unstable = import inputs.nixpkgs_unstable { inherit system; };
inherit system;
};
forAllSystems =
gen: inputs.nixpkgs.lib.genAttrs lib.supportedSystems (system: gen (lib.systemSpecificVars system));
}