services: add deprecation infrastructure for deprecating services #7456

Open
hsjobeki wants to merge 2 commits from service-deprecation into main
pull from: service-deprecation
Member

Previously modules emited NixOS warnings that where printed when 'config.system.build.toplevel' is evaluated
New behavior: print warning if any service result is evaluated at all

That includes vars generation and other machine calls that where not covered

Description of the change

Checklist

  • Ensured documentation is up to date
  • Added tests for all bug fixes and features
  • Doesn't affect backwards compatibility - or check the next points
    • Added the breaking change and migration details to docs/release-notes.md
    • !!! Review from another person is required BEFORE merge !!!

New major features

  • Added major features
    • All features are mentioned in docs/release-notes.md
    • All features are tested sufficiently via:
      • eval tests (for NixOS modules and nix functions)
      • python tests for python API and CLI code
      • VM or container tests for new clan services
Previously modules emited NixOS warnings that where printed when 'config.system.build.toplevel' is evaluated New behavior: print warning if any service result is evaluated at all That includes vars generation and other machine calls that where not covered ## Description of the change <!-- Brief summary of the change if not already clear from the title --> ## Checklist - [ ] Ensured documentation is up to date - [ ] Added tests for all bug fixes and features - [ ] Doesn't affect backwards compatibility - or check the next points - [ ] Added the breaking change and migration details to docs/release-notes.md - !!! Review from another person is required *BEFORE* merge !!! ## New major features - [ ] Added major features - [ ] All features are mentioned in docs/release-notes.md - [ ] All features are tested sufficiently via: - [ ] eval tests (for NixOS modules and nix functions) - [ ] python tests for python API and CLI code - [ ] VM or container tests for new clan services
CODEOWNERS rules requested review from pinpox 2026-05-13 14:03:27 +00:00
CODEOWNERS rules requested review from kenji 2026-05-13 14:03:27 +00:00
hsjobeki force-pushed service-deprecation from 791213d5f0 to 58dc2b45a8 2026-05-13 14:04:39 +00:00 Compare
hsjobeki force-pushed service-deprecation from 58dc2b45a8 to 204c9f3cc4 2026-05-13 14:05:03 +00:00 Compare
hsjobeki force-pushed service-deprecation from 204c9f3cc4 to 2fc4bcfcfc 2026-05-29 15:12:38 +00:00 Compare
hsjobeki force-pushed service-deprecation from 2fc4bcfcfc to 95bcf4a399 2026-05-29 15:34:05 +00:00 Compare
hsjobeki added 1 commit 2026-06-01 12:44:36 +00:00
services: add deprecation infrastructure for deprecating services
PR Size Review Check / pr-size-review-gate (pull_request) Successful in 22s
sizelint on each commit / sizelint (pull_request) Successful in 28s
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-pytest-without-core Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.treefmt Build done.
buildbot/nix-build gitea:clan/clan-core#checks.x86_64-linux.eval-tests Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-darwin.eval-tests Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.devshell Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.devShell-clan-app Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-app-pytest Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.devShell-clan-site Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.devShell-docs Build done.
buildbot/nix-eval Build done. (2 warnings)
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.eval-tests Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.admin Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-app-ui-unit-tests Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.borgbackup Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-app-ui-lint Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.service-dummy-test-from-flake Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.nixos-systemd-abstraction Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.all-packages Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-pytest-with-core Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-site-lint Build done.
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.clan-test-iso Build done.
buildbot/nix-build Build done.
6204a21cf6
Previously modules emited NixOS warnings that where printed when 'config.system.build.toplevel' is evaluated
New behavior: print warning if any service result is evaluated at all

That includes vars generation and other machine calls that where not covered
hsjobeki force-pushed service-deprecation from 95bcf4a399 to 6204a21cf6 2026-06-01 12:44:36 +00:00 Compare
hsjobeki scheduled this pull request to auto merge when all checks succeed 2026-06-01 12:44:40 +00:00
Author
Member

Slightly Improves #7534

Slightly Improves #7534
hsjobeki added 1 commit 2026-06-02 15:44:21 +00:00
clan/checks: add severity for consistency
PR Size Review Check / pr-size-review-gate (pull_request) Successful in 40s
sizelint on each commit / sizelint (pull_request) Successful in 43s
buildbot/nix-eval evaluation succeeded in 3m 57s (2 warnings)
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-darwin.eval-tests failed
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.eval-tests failed
buildbot/nix-build gitea:clan/clan-core#checks.x86_64-linux.eval-tests failed
buildbot/nix-build 3 of 150 attributes failed
a0894ce3b6
gitea-mq added the
mq
waiting
label 2026-10-15 13:03:55 +00:00
Some checks are pending
PR Size Review Check / pr-size-review-gate (pull_request) Successful in 40s
sizelint on each commit / sizelint (pull_request) Successful in 43s
buildbot/nix-eval evaluation succeeded in 3m 57s (2 warnings)
Required
Details
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-darwin.eval-tests failed
buildbot/nix-build gitea:clan/clan-core#checks.aarch64-linux.eval-tests failed
buildbot/nix-build gitea:clan/clan-core#checks.x86_64-linux.eval-tests failed
buildbot/nix-build 3 of 150 attributes failed
Required
Details
gitea-mq
Required
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin service-deprecation:service-deprecation
git checkout service-deprecation
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: clan/clan-core#7456