aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..f138bc6
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,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 { };
+ }
+ );
+
+ homeManagerModules.default = import ./hm-module.nix self;
+ homeManagerModules.openBambooNetworking = self.homeManagerModules.default;
+ };
+}