cluster/flake.nix
2021-01-11 21:30:37 +01:00

46 lines
1,016 B
Nix

{
inputs = {
nixpkgs.url = "nixpkgs";
csi-driver-nfs = {
flake = false;
url = "github:MagicRB/csi-driver-nfs";
};
klippy = {
url = "github:KevinOConnor/klipper?rev=e68cf08d15a985ecce7497b58408ee233dd54eb9";
flake = false;
};
moonraker = {
url = "github:MagicRB/moonraker?ref=master";
flake = false;
};
};
outputs = { self, nixpkgs, ... }@inputs:
let
lib =
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
import ./lib.nix { inherit system nixpkgs pkgs inputs; };
flakes = lib.flakes ./nix-packages [
"klippy"
"mainsail"
"moonraker"
];
dockerImages = lib.dockerImages ./docker [
"klippy-moonraker"
"postgresql"
"gitea"
"csi-driver-nfs"
];
pkgs = lib.pkgsWithFlakes flakes;
moduleArg = ({ inherit pkgs; } // inputs);
in {
inherit flakes dockerImages;
};
}