aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-07-08 16:40:50 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-07-08 16:40:50 -0500
commit4ee40b64e3121f5b7d7c13c6d115d7f970da4dfb (patch)
tree7f2fdf05493595cb94dd29b99b50f968994d433c /flake.nix
downloadopen-bamboo-network-plugin-flake-4ee40b64e3121f5b7d7c13c6d115d7f970da4dfb.tar.xz
open-bamboo-network-plugin-flake-4ee40b64e3121f5b7d7c13c6d115d7f970da4dfb.zip
initial commit
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;
+ };
+}