2021-01-11 18:35:35 +01:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs";
|
2021-02-18 20:59:11 +01:00
|
|
|
nixpkgs-unstable.url = "nixpkgs-unstable";
|
2021-01-11 18:35:35 +01:00
|
|
|
|
|
|
|
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
|
2021-01-26 13:10:49 +01:00
|
|
|
rlib =
|
2021-01-11 18:35:35 +01:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
import ./lib.nix { inherit system nixpkgs pkgs inputs; };
|
2021-01-26 13:10:49 +01:00
|
|
|
flakes = rlib.flakes ./nix-packages [
|
2021-01-11 18:35:35 +01:00
|
|
|
"klippy"
|
|
|
|
"mainsail"
|
|
|
|
"moonraker"
|
2021-01-26 13:10:49 +01:00
|
|
|
"rust-runner"
|
2021-01-11 18:35:35 +01:00
|
|
|
];
|
2021-01-26 13:10:49 +01:00
|
|
|
pkgs = rlib.pkgsWithFlakes flakes;
|
|
|
|
|
|
|
|
dockerImages = rlib.dockerImages pkgs ./docker [
|
2021-01-11 18:35:35 +01:00
|
|
|
"klippy-moonraker"
|
|
|
|
"postgresql"
|
2021-01-11 21:30:37 +01:00
|
|
|
"gitea"
|
2021-01-11 18:35:35 +01:00
|
|
|
"csi-driver-nfs"
|
2021-02-18 20:59:11 +01:00
|
|
|
"nix"
|
|
|
|
"mariadb"
|
2021-01-11 18:35:35 +01:00
|
|
|
];
|
2021-01-26 13:10:49 +01:00
|
|
|
containerTest = let
|
|
|
|
all-modules = import <nixpkgs/nixos/modules/module-list.nix>;
|
|
|
|
custom-module = rec {
|
|
|
|
services.mysql.enable = true;
|
|
|
|
};
|
|
|
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
|
|
|
in
|
|
|
|
pkgs.writeText "test" (pkgs.lib.evalModules {
|
|
|
|
modules = all-modules ++ [ custom-module ];
|
|
|
|
}).config.services.mysql.dataDir;
|
2021-01-11 18:35:35 +01:00
|
|
|
in {
|
2021-01-26 13:10:49 +01:00
|
|
|
inherit flakes dockerImages containerTest;
|
2021-01-11 18:35:35 +01:00
|
|
|
};
|
|
|
|
}
|