From 4ee40b64e3121f5b7d7c13c6d115d7f970da4dfb Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Wed, 8 Jul 2026 16:40:50 -0500 Subject: initial commit --- flake.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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; + }; +} -- cgit v1.2.3