Skip to content

Conversation

2hexed
Copy link
Member

@2hexed 2hexed commented Mar 20, 2025

re-submitting #379151 because I had accidentally deleted the previous branch from my nixpkgs fork :(

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.

@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/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 20, 2025
@2hexed
Copy link
Member Author

2hexed commented Apr 3, 2025

What's wrong with the "Build NixOS manual v2 / nixos-manual-build" check? Did I do anything wrong?

@2hexed 2hexed changed the title nixos/picom: update configuration format picom: refactor Apr 3, 2025
@nixpkgs-ci nixpkgs-ci bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jul 4, 2025
@wolfgangwalther wolfgangwalther changed the title picom: refactor nixos/picom: refactor Jul 12, 2025
@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Jul 12, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 12, 2025
in
"${escape [ sep ] k}${sep}${mkValueString v};"
"${escape [ sep ] k}${sep}${mkValueString toList v};"
);

# This serializes a Nix expression to the libconfig format.
mkValueString =
Copy link
Contributor

@rnhmjoj rnhmjoj Jul 13, 2025

Choose a reason for hiding this comment

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

A libconfig generator has been added to Nixpkgs somewhat recently. This should all be replaced with pkgs.formats.libconfig.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi, please review my recent changes and let me know what you think :D

Copy link
Member Author

Choose a reason for hiding this comment

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

let me know if i made any mistakes im still very new to nix :(

Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you remove all the options under services.picom? If you really want to, you could move them under services.picom.settings with the original names and keep the documentation/type checking, but removing the entirely is a net negative in term of usability.

Copy link
Member Author

@2hexed 2hexed Jul 15, 2025

Choose a reason for hiding this comment

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

I thought it would've been nicer to let the user take care of it, but I'll add those again, gimme a few mins

Copy link
Member Author

@2hexed 2hexed Jul 15, 2025

Choose a reason for hiding this comment

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

Why did you remove all the options under services.picom? If you really want to, you could move them under services.picom.settings with the original names and keep the documentation/type checking, but removing the entirely is a net negative in term of usability.

i added back pls review and let me know :))

removed existing options and implemented a 'settings' option to make the code cleaner, easy to maintain and to keep things in one place
Copy link
Contributor

@rnhmjoj rnhmjoj left a comment

Choose a reason for hiding this comment

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

I'm having a hard time reviewing these changes. Can you please start again

  1. without removing or changing the implementation (picom.settings = mkDefaultAttrs { ... }) of the top-level options, so we don't have any breaking changes

  2. using nix-shell --run treefmt to format the file, so the diff is readable

"detect-transient" = cfg.detectTransient;
"detect-rounded-corners" = cfg.detectRoundedCorners;
"mark-wmwin-focused" = cfg.markWmwinFocused;
} // cfg.settings; # Allows overrides via `settings`
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't you let the module system do the merge? It's much more powerful than the // operator.

};

fadeExclude = mkOption {
type = types.listOf types.str;
default = [ ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you remove the documentation?

};

package = mkPackageOption pkgs "picom" { };
shadowOffsetX = mkOption {
Copy link
Contributor

Choose a reason for hiding this comment

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

I asked you to not remove these options to avoid unnecessary breackages, but it's pointless if you rename them.

@LilianSchall
Copy link

Any update regarding this PR? Is there some help needed? The ricing community would very much appreciate to access to animations settings :D

@2hexed
Copy link
Member Author

2hexed commented Aug 21, 2025

Hello sorry for the late response, I've been busy with exams. I'm still up to contribute and help with this. I'm not sure what needs to be done next so assist and let me know and I'll do it asap, thanks :))

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 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants