aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: f13fedb4925d6beae35a8c20f0a700b49ffedd11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  description = "open-bamboo-networking: an open-source replacement for Bambu Lab slicers' proprietary network plugin, packaged for Nix + home-manager";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  };

  outputs =
    { self, nixpkgs }:
    let
      forAllSystems = nixpkgs.lib.genAttrs [
        "x86_64-linux"
        "aarch64-linux"
      ];
    in
    {
      packages = forAllSystems (
        system:
        let
          pkgs = nixpkgs.legacyPackages.${system};
        in
        {
          # clientType defaults to "orca_slicer" - the only target this
          # flake's home-manager module currently wires up - but the
          # package itself takes clientType as a parameter for other
          # slicers upstream supports.
          default = pkgs.callPackage ./package.nix { };
        }
      );

      hmModules.open-bamboo-networking = import ./hm-module.nix self;
      hmModules.default = self.hmModules.open-bamboo-networking;
    };
}