Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

klipper: init at 0.8.0 #98917

Merged
merged 2 commits into from Oct 12, 2020
Merged

klipper: init at 0.8.0 #98917

merged 2 commits into from Oct 12, 2020

Conversation

lovesegfault
Copy link
Member

Motivation for this change

I need this to run the 3D printer I'm building. The firmware runs a daemon on a RPi that talks/commands it, which is what is being packaged here.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

nixos/modules/services/misc/klipper.nix Outdated Show resolved Hide resolved
nixos/modules/services/misc/klipper.nix Outdated Show resolved Hide resolved
@lovesegfault lovesegfault force-pushed the klipper-init branch 2 times, most recently from efa7d8d to fb8ef7a Compare September 27, 2020 07:32
Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last nit I have is: I would separate this into two commits: klipper: init at 0.8.0, and nixos/klipper: init.

(Brownie points for using lib instead of stdenv.lib :) )

@lovesegfault
Copy link
Member Author

Last nit I have is: I would separate this into two commits: klipper: init at 0.8.0, and nixos/klipper: init.

(Brownie points for using lib instead of stdenv.lib :) )

Done!

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM, thanks!

nixos/modules/services/misc/klipper.nix Outdated Show resolved Hide resolved
nixos/modules/services/misc/klipper.nix Outdated Show resolved Hide resolved
nixos/modules/services/misc/klipper.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Outdated Show resolved Hide resolved
@lovesegfault
Copy link
Member Author

Alright, I've tested this today and it works 🥳

Copy link
Member

@andir andir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor comments but looks good otherwise.

nixos/modules/services/misc/klipper.nix Show resolved Hide resolved
nixos/modules/services/misc/klipper.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Outdated Show resolved Hide resolved
pkgs/servers/klipper/default.nix Show resolved Hide resolved
@lovesegfault lovesegfault force-pushed the klipper-init branch 3 times, most recently from a2cb9df to dcef04d Compare October 10, 2020 01:53
message = "Option klipper.octoprintIntegration requires Octoprint to be enabled on this system. Please enable services.octoprint to use it.";
}];

environment.etc."klipper.cfg".source = format.generate "klipper.cfg" cfg.settings;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I'm several years late, but why are we putting the klipper.cfg in /etc? We later pass the path to klipper, which means it shouldn't need to be in /etc?

@lovesegfault lovesegfault deleted the klipper-init branch May 4, 2023 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants