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

pid-fan-controller: init at 0.1.1 #336849

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zimward
Copy link
Contributor

@zimward zimward commented Aug 23, 2024

Description of changes

pid-fan-controller is a (as the name implies) a fan controller using a PID control loop for Linux.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/4559

Copy link
Member

@phaer phaer left a comment

Choose a reason for hiding this comment

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

style suggestions only, didn't test this

nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
heat_srcs = lib.mkOption {
type = lib.types.listOf (lib.types.submodule heatSource);
description = "list of heat sources";
example = ''
Copy link
Member

Choose a reason for hiding this comment

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

The example is likely a big to big to properly render on search.nixos.org.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just halved the length of the example. Is there some example of the limits search.nixos.org is able to display?

Copy link
Contributor

Choose a reason for hiding this comment

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

wdym? Yeah, it's a bit big, but nixos-search and the manual should be fine with it.

@zimward zimward force-pushed the pid-fan-controller branch 3 times, most recently from 73e7806 to 3a6a475 Compare September 23, 2024 10:57
Copy link
Contributor

@SigmaSquadron SigmaSquadron left a comment

Choose a reason for hiding this comment

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

Overall this already looks really good to me.

pkgs/by-name/pi/pid-fan-controller/package.nix Outdated Show resolved Hide resolved
Copy link
Contributor

@SigmaSquadron SigmaSquadron left a comment

Choose a reason for hiding this comment

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

All of these are grammar, cosmetic or other nitpicks. None of them are blockers, and you should feel free to customise as needed.

nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
nixos/modules/services/hardware/pid-fan-controller.nix Outdated Show resolved Hide resolved
Copy link
Contributor

@SigmaSquadron SigmaSquadron left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you for addressing all of the reviews.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/1973

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.

6 participants