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-firewall-tool: misc improvements #365207

Merged
merged 4 commits into from
Dec 30, 2024
Merged

Conversation

nbdd0121
Copy link
Contributor

This cleans up the nixos-firewall-tool script, and adds man page and shell completions for bash and fish.

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.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.

@nbdd0121 nbdd0121 added the 11.by: package-maintainer This PR was created by the maintainer of the package it changes label Dec 14, 2024
@ofborg ofborg bot requested review from clerie and duament December 15, 2024 04:22
@wegank wegank added 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Dec 15, 2024
@Krutonium
Copy link
Contributor

I came here to open an issue over a bunch of things that this seems to address. LGTM!

writeShellApplication doesn't really fit the tool well (evident from
builtin.readFile) and it actually generates duplicate shebang lines.
@nbdd0121 nbdd0121 force-pushed the nixos-firewall-tool branch from 9dd648e to d57da57 Compare December 28, 2024 17:33
@ofborg ofborg bot requested a review from duament December 28, 2024 21:19
@wegank wegank removed 12.approvals: 1 This PR was reviewed and approved by one reputable person 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package labels Dec 29, 2024
@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package labels Dec 30, 2024
@fpletz fpletz merged commit 7323ca2 into NixOS:master Dec 30, 2024
42 of 43 checks passed
@nbdd0121 nbdd0121 deleted the nixos-firewall-tool branch December 30, 2024 16:00
@emilazy
Copy link
Member

emilazy commented Dec 30, 2024

FWIW, this broke the installer tests because of the filesets bug; see #369459. We should really make sure filesets don‘t get used inside Nixpkgs in CI somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: clean-up 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12.approvals: 2 This PR was reviewed and approved by two reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants