Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--force has no effect if nix-daemon.service already exists #1008

Open
WxNzEMof opened this issue Jun 16, 2024 · 0 comments
Open

--force has no effect if nix-daemon.service already exists #1008

WxNzEMof opened this issue Jun 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@WxNzEMof
Copy link

The help text says:

      --force
          If `nix-installer` should forcibly recreate files it finds existing
          
          [env: NIX_INSTALLER_FORCE=]

But, this doesn't seem to be true in case of nix-daemon.service.

If nix-daemon.service already exists, even with --force, nix-installer will crash with the error below. See also #1007 for why the advice it provides is not always a good idea.

Error

Error: 
   0: Planner error
   1: Error executing action
   2: Action `configure_init_service` errored
   3: `/etc/systemd/system/nix-daemon.service` already exists, consider removing it with `rm /etc/systemd/system/nix-daemon.service`

Metadata

key value
version 0.19.1
os linux
arch x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants