-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Octoprint: hardening and RFC 42 #335827
base: master
Are you sure you want to change the base?
Octoprint: hardening and RFC 42 #335827
Conversation
c56804b
to
9d27b4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since octoprint was developed with raspberypi
in mind, I would suggest adding a release note about the enableRaspberryPi
option.
Other than that: This looks good to me 👍
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 2 packages blacklisted:
2 packages built:
|
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package blacklisted:
2 packages built:
|
9d27b4d
to
cef644d
Compare
I've added a release note. |
I'm ok with this 👍 @abbradar @gebner @WhittlesJr what do you think? |
cef644d
to
6b95da6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the freeze of breaking changes, I'd recommend adding a state version condition for the Raspberry Pi option.
LGTM otherwise
}; | ||
enableRaspberryPi = mkEnableOption "RaspberryPi specific hardware access rules"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enableRaspberryPi = mkEnableOption "RaspberryPi specific hardware access rules"; | |
enableRaspberryPi = mkEnableOption "RaspberryPi specific hardware access rules" // { | |
default = lib.versionOlder config.system.stateVersion "25.05"; | |
}; |
2195eb2
to
fcdd2ee
Compare
ffmpeg is only used for timelapses which will just be disabled if the options isn't set. Additionally this allows people to ship their own ffmpeg.
fcdd2ee
to
5d00a73
Compare
5d00a73
to
2599d2e
Compare
Description of changes
I've added rfc 42 compliant options to the octoprint module, which in my opinion make it easier to read and understand.
Additionally I've added some basic systemd hardening for the service and remove the default enabled raspberryPi specific option. This might break some setup but previously for none raspberry Pi setups there was no option to remove the tempfiles.
Lastly I removed the ffmpeg patch from the package. This breaks timelapses for people using the package without the module, who I expecte to be able to, or even want to set their own ffmpeg, something that wasn't possible previously.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.