Skip to content

Something like nixos-rebuild switch but only for "late-boot" services #3

@arianvp

Description

@arianvp

Currently nixos' activation script is a big mess (in my opinion); as it also restarts things that come before sysinit.target.

I think for most cases to activate a config people should just reboot, so that we never run into these issues.

However, I see the benefit for running services you install "immediately" so I would like to support
limited nixos-rebuild switch-like functionality but only for services that have DefaultDependencies=yes and are pulled in by multi-user.target

If the activation script detects any other things that need "restarting" it should refuse and advice a reboot

This eliminates obscure bugs; but keeps the interactivity of rebuild switch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions