Skip to content

Unmanaged path already exists in files system: /etc/nix/nix.conf #267

@maciej-lech

Description

@maciej-lech

Describe the bug

I got below error when switching (worked before):

2025-09-11T16:09:16Z INFO  system_manager::register] Built system-manager profile /nix/store/qppk2byxpp45b96c95srn4y2761kyzc4-system-manager
[2025-09-11T16:09:16Z INFO  system_manager::register] Creating new generation from /nix/store/qppk2byxpp45b96c95srn4y2761kyzc4-system-manager
[2025-09-11T16:09:16Z INFO  system_manager::register] Registering GC root...
[2025-09-11T16:09:16Z INFO  system_manager] Creating symlink: /nix/var/nix/gcroots/system-manager-current -> /nix/store/qppk2byxpp45b96c95srn4y2761kyzc4-system-manager
[2025-09-11T16:09:16Z INFO  system_manager::register] Done
[2025-09-11T16:09:16Z INFO  system_manager::activate] Activating system-manager profile: /nix/store/qppk2byxpp45b96c95srn4y2761kyzc4-system-manager
[2025-09-11T16:09:16Z INFO  system_manager::activate] Running pre-activation assertions...
Evaluating pre-activation assertion osVersion...

All pre-activation assertions succeeded.
[2025-09-11T16:09:16Z INFO  system_manager::activate] Reading state info from /var/lib/system-manager/state/system-manager-state.json
[2025-09-11T16:09:16Z INFO  system_manager::activate] Activating etc files...
[2025-09-11T16:09:16Z INFO  system_manager::activate::etc_files] Reading etc file definitions...
[2025-09-11T16:09:16Z INFO  system_manager::activate::etc_files] Creating /etc entries in /etc
[2025-09-11T16:09:16Z INFO  system_manager] Creating symlink: /etc/.system-manager-static -> /nix/store/zrgiwznvnzsd7cnk1v337bxii5kj3lx5-etc-static-env
[2025-09-11T16:09:16Z ERROR system_manager::activate::etc_files] Error while trying to link directory /etc/.system-manager-static/nix: Unmanaged path already exists in files
ystem, please remove it and run system-manager again: /etc/nix/nix.conf

To Reproduce

Steps to reproduce the behavior:

  1. Install nix with determine
  2. Edit /etc/nix/nix.conf
  3. Run system-manager switch

Expected behavior

No error

System information

❱ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.3 LTS
Release:        24.04
Codename:       noble

❱ nix --version
nix (Nix) 2.31.1

❱ sudo $(which system-manager) --version
system_manager 0.1.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions