[root@nixos:/etc/nix]# sudo chmod 777 /etc/nix/nix.conf
chmod: changing permissions of '/etc/nix/nix.conf': Read-only file system

I remember this is some filesystem / Linux kernel utility to change this, I'm not sure what it's called though?

1 Answer 1


This file is managed by Nix - hence it's in the store path - and read only:

readlink -f /etc/nix/nix.conf 

One needs to set the nix.extraOptions in configuration.nix to modify this file.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.