Skip to content

nixos/kanidm: notify -> notify-reload#405726

Closed
Kranzes wants to merge 1 commit intoNixOS:masterfrom
Kranzes:kanidm
Closed

nixos/kanidm: notify -> notify-reload#405726
Kranzes wants to merge 1 commit intoNixOS:masterfrom
Kranzes:kanidm

Conversation

@Kranzes
Copy link
Copy Markdown
Member

@Kranzes Kranzes commented May 9, 2025

Adds systemd service reloading support via the notify-reload service type.

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/` labels May 9, 2025
@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 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 9, 2025
@adamcstephens
Copy link
Copy Markdown
Contributor

This is only available in 1.6, correct? If so then it will either have to wait until 1.5 is retired in a month, or you’ll need to gate it on version

@mweinelt
Copy link
Copy Markdown
Member

No motivation, no dice.

Copy link
Copy Markdown
Contributor

@adamcstephens adamcstephens left a comment

Choose a reason for hiding this comment

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

Unsupported in 1.5 and please provide reasoning. Also will this even hot reload without changing the nixos IfChanged?

@Kranzes
Copy link
Copy Markdown
Member Author

Kranzes commented May 10, 2025

Totally forgot we support multiple versions. I also assumed people know a bit about notify vs notify-reload.

EDIT: I added the motivation for the change and adjusted it so it's only set for 1.6.0 and up.

Adds systemd service reloading via the `notify-reload` service type.
@Kranzes
Copy link
Copy Markdown
Member Author

Kranzes commented May 10, 2025

Also will this even hot reload without changing the nixos IfChanged?

I'm not sure, I guess not because restart is still the default change? Maybe I have to adjust some restartTriggers -> reloadTriggers, and it seems like setting ifChanged isn't recommended? I'll do that tomorrow.

@Kranzes Kranzes marked this pull request as draft May 10, 2025 02:08
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 6, 2025
@provokateurin
Copy link
Copy Markdown
Member

The feature was removed again in 1.8, so I think this PR is obsolete: kanidm/kanidm#3885

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 15, 2025
@mweinelt mweinelt closed this Nov 15, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants