Skip to content

Commit 1322cfc

Browse files
committed
fix: disable userborn legacy state import
nixpkgs d2f6794 added `services.userborn.importLegacyState`, enabled by default, which emits a `userborn-import-legacy.service` one-shot unit that migrates state left behind by NixOS' update-users-groups.pl activation script. system-manager never ran that script, so there is nothing to migrate. Opt out to keep the unit and the userborn-import-legacy package out of every system closure. Fixes the container-*-empty-config checks, which assert an exact allowlist of the units an empty config may produce.
1 parent ca31ae7 commit 1322cfc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nix/modules/upstream/nixpkgs/userborn.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ in
3737
services.userborn.enable = lib.mkDefault true;
3838
services.userborn.package = userborn;
3939

40+
# The legacy import is a one-shot migration of state left behind by NixOS'
41+
# update-users-groups.pl activation script. system-manager never ran that
42+
# script, so there is nothing to migrate; keep the unit and the
43+
# userborn-import-legacy package out of the closure.
44+
services.userborn.importLegacyState = lib.mkDefault false;
45+
4046
# REMOVE when https://github.com/NixOS/nixpkgs/pull/483684 is merged
4147
systemd.services.userborn = lib.mkIf config.services.userborn.enable {
4248
# system-manager does not implement systemd aliases

0 commit comments

Comments
 (0)