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

nixos/logiops: init #167388

Closed
wants to merge 7 commits into from
Closed

nixos/logiops: init #167388

wants to merge 7 commits into from

Conversation

ckiee
Copy link
Member

@ckiee ckiee commented Apr 5, 2022

Description of changes

This adds a new NixOS module for logiops which you can read more about in #165936.

It depends on #208747 / #246115 (the libconfig serializer) being merged first and is in draft until that.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 22.05 Release Notes (or backporting 21.11 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@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/1036

nixos/modules/hardware/logiops/default.nix Outdated Show resolved Hide resolved
nixos/modules/hardware/logiops/default.nix Outdated Show resolved Hide resolved
nixos/modules/hardware/logiops/default.nix Show resolved Hide resolved
nixos/modules/hardware/logiops/default.nix Outdated Show resolved Hide resolved
@ckiee
Copy link
Member Author

ckiee commented Jul 28, 2022

For some reason my Emacs is executing nixfmt instead of nixpkgs-fmt. Weird.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

module LGTM, someone still needs to review the lib changes.

@ckiee
Copy link
Member Author

ckiee commented Jul 28, 2022

cc @Ma27 @lheckemann if either of you feel like reviewing

nixos/modules/hardware/logiops/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/logiops/default.nix Outdated Show resolved Hide resolved
pkgs/misc/drivers/logiops/default.nix Outdated Show resolved Hide resolved
Copy link
Contributor

@anund anund left a comment

Choose a reason for hiding this comment

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

The libconfig implementation won't be good enough for users.

lib/generators.nix Outdated Show resolved Hide resolved
@ckiee ckiee force-pushed the logiops-nixos branch 2 times, most recently from 4c054ac to 82459de Compare July 30, 2022 16:41
@ckiee
Copy link
Member Author

ckiee commented Jul 31, 2022

Oops. Put the new libconfig changes in the wrong commit.

Edit: That was perhaps my most ambitious git-fu so far, edited it all in place with a rebase, reset and stash :P

ckiee added a commit to ckiee/logiops that referenced this pull request Dec 10, 2022
NixOS will soon have a runtime test for logiops which uses an
invalid configuration as a baseline, expecting it to fail.

Silent errors are not nice for users; systemd does not inform users
of stderr messages in nominally running services.

NixOS/nixpkgs#167388
ckiee added a commit to ckiee/logiops that referenced this pull request Dec 10, 2022
NixOS will soon have a runtime test for logiops which uses an
invalid configuration as a baseline, expecting it to fail.

Silent errors are not nice for users; systemd does not inform users
of stderr messages in nominally running services.

NixOS/nixpkgs#167388
@ckiee ckiee requested a review from infinisil as a code owner January 2, 2023 13:01
@ckiee ckiee marked this pull request as draft January 2, 2023 13:01
ckiee added a commit to ckiee/logiops that referenced this pull request Jan 2, 2023
NixOS will soon have a runtime test for logiops which uses an
invalid configuration as a baseline, expecting it to fail.

Silent errors are not nice for users; systemd does not inform users
of stderr messages in nominally running services.

NixOS/nixpkgs#167388
@github-actions github-actions bot added the 6.topic: lib The Nixpkgs function library label Aug 14, 2023
h7x4 and others added 7 commits October 16, 2023 03:33
Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com>
Signed-off-by: h7x4 <h7x4@nani.wtf>
Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com>
Signed-off-by: h7x4 <h7x4@nani.wtf>
There's no negative test due to runner limitations.

I tried to hack on the runner for a bit but it got out of scope and I'm
not interested in learning more Python. My 'fork' of nixpkgs has a
logiops-nixos-xtra branch for anyone interested in poking the testing
more.
@github-actions github-actions bot removed the 6.topic: lib The Nixpkgs function library label Oct 16, 2023
@ckiee
Copy link
Member Author

ckiee commented Oct 16, 2023

rebased on everything and attempted to bump logiops but it is very broken (PixlOne/logiops#409, among other possible issues) so that work is in a different branch.

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