mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 09:36:14 +01:00
46 lines
1,016 B
Nix
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;
|
|
};
|
|
}
|