Skip to content

nixos/emacs: make systemd report clean exit status when stopping#397916

Merged
wegank merged 1 commit intoNixOS:masterfrom
mjoerg:nixos-emacs-systemd-success-exit-status
Apr 23, 2025
Merged

nixos/emacs: make systemd report clean exit status when stopping#397916
wegank merged 1 commit intoNixOS:masterfrom
mjoerg:nixos-emacs-systemd-success-exit-status

Conversation

@mjoerg
Copy link
Contributor

@mjoerg mjoerg commented Apr 11, 2025

see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45181 for details

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/` 6.topic: emacs Text editor 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 Apr 11, 2025
@mjoerg mjoerg requested a review from a team April 13, 2025 07:02
@panchoh panchoh requested review from panchoh and removed request for panchoh April 16, 2025 05:44
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Apr 16, 2025
@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Apr 19, 2025
Copy link
Contributor

@jian-lin jian-lin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!


To avoid future divergence between upstream systemd service and our NixOS module, it would be good to use upstream systemd service (with necessary modifications such as ExecStart) through systemd.packages = [ pkgs.emacs ]; instead of duplicating the upstream service.

@wegank wegank added 12.approvals: 3+ This PR was reviewed and approved by three or more persons. and removed 12.approvals: 2 This PR was reviewed and approved by two persons. labels Apr 20, 2025
@wegank wegank merged commit 0157796 into NixOS:master Apr 23, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: emacs Text editor 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: 3+ This PR was reviewed and approved by three or more persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants