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

treewide/nixos: remove with lib; part 9 #361257

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

Conversation

Stunkymonkey
Copy link
Contributor

@Stunkymonkey Stunkymonkey commented Dec 2, 2024

Description of changes

part of #208242

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.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Dec 2, 2024
@Stunkymonkey Stunkymonkey marked this pull request as ready for review December 2, 2024 23:49
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Dec 2, 2024
@gepbird gepbird added the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 26, 2024
Copy link
Contributor

@gepbird gepbird left a comment

Choose a reason for hiding this comment

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

I assume the unrelated changes happened after a rebase, maybe it's better start on a clean base and rerun your script to recreate the commits when you get a merge conflict?

nixos/modules/services/networking/resilio.nix Show resolved Hide resolved
nixos/modules/services/networking/shairport-sync.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/soju.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/supplicant.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/supplicant.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/tailscale.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/tailscale.nix Outdated Show resolved Hide resolved
@Stunkymonkey Stunkymonkey force-pushed the treewide-nixos-remove-with-lib-9 branch from de42f45 to ffcb2f0 Compare December 29, 2024 22:35
@Stunkymonkey Stunkymonkey removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 29, 2024
@Stunkymonkey Stunkymonkey force-pushed the treewide-nixos-remove-with-lib-9 branch from ffcb2f0 to 27de3e3 Compare December 29, 2024 22:39
listenAddresses = mkOption {
type = with types; coercedTo str singleton (listOf str);
listenAddresses = lib.mkOption {
type = with lib.types; coercedTo str lib.singleton (listOf str);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

lib.singleton was added by hand

Copy link
Contributor

Choose a reason for hiding this comment

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

singleton was there before, so the only change is adding lib.

Comment on lines -11 to +10
else generators.mkValueStringDefault {} v;
else lib.generators.mkValueStringDefault {} v;
mkKeyValueTinyproxy = {
mkValueString ? mkValueStringDefault {}
mkValueString ? lib.generators.mkValueStringDefault {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these lines were manually changed

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing the eval error

@Stunkymonkey Stunkymonkey force-pushed the treewide-nixos-remove-with-lib-9 branch from 27de3e3 to 9372db5 Compare December 29, 2024 22:51
@gepbird gepbird self-requested a review December 30, 2024 01:30
Copy link
Contributor

@gepbird gepbird left a comment

Choose a reason for hiding this comment

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

I looked through all the diff and didn't find any false positives, LGTM!

For double checking I ran a script that filters out the lib (and whitespace) changes, this was the only result:

diff --git a/nixos/modules/services/networking/tinyproxy.nix b/nixos/modules/services/networking/tinyproxy.nix
index 6e07c6a541e9..dd827d7f55f5 100644
--- a/nixos/modules/services/networking/tinyproxy.nix
+++ b/nixos/modules/services/networking/tinyproxy.nix
@@ -1,16 +1,13 @@
-    mkValueString ? mkValueStringDefault {}
+    mkValueString ? lib.generators.mkValueStringDefault {}

nixos/modules/services/networking/smartdns.nix Outdated Show resolved Hide resolved
@gepbird gepbird added the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 30, 2024
@gepbird
Copy link
Contributor

gepbird commented Dec 30, 2024

part of #208242

@Stunkymonkey Stunkymonkey force-pushed the treewide-nixos-remove-with-lib-9 branch from 20aadf8 to 12cb5fe Compare December 30, 2024 16:09
@Stunkymonkey Stunkymonkey removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 30, 2024
Copy link
Contributor

@gepbird gepbird left a comment

Choose a reason for hiding this comment

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

Changes since last force push look good, thanks!

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 12.approvals: 1 This PR was reviewed and approved by one reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants