{"action":"created","issue":{"url":"https://api.github.com/repos/aherrmann/nix-multi-user-install/issues/2","labels_url":"https://api.github.com/repos/aherrmann/nix-multi-user-install/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/aherrmann/nix-multi-user-install/issues/2/comments","events_url":"https://api.github.com/repos/aherrmann/nix-multi-user-install/issues/2/events","html_url":"https://github.com/aherrmann/nix-multi-user-install/issues/2","id":115164764,"number":2,"title":"/etc/nix/nix.conf cannot already exist when running this script","user":{"login":"a1russell","id":241628,"avatar_url":"https://avatars.githubusercontent.com/u/241628?v=3","gravatar_id":"","url":"https://api.github.com/users/a1russell","html_url":"https://github.com/a1russell","followers_url":"https://api.github.com/users/a1russell/followers","following_url":"https://api.github.com/users/a1russell/following{/other_user}","gists_url":"https://api.github.com/users/a1russell/gists{/gist_id}","starred_url":"https://api.github.com/users/a1russell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1russell/subscriptions","organizations_url":"https://api.github.com/users/a1russell/orgs","repos_url":"https://api.github.com/users/a1russell/repos","events_url":"https://api.github.com/users/a1russell/events{/privacy}","received_events_url":"https://api.github.com/users/a1russell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T22:33:23Z","updated_at":"2015-12-06T19:30:32Z","closed_at":"2015-12-06T18:55:16Z","body":"I know the `configure_nix()` function will prompt to overwrite `/etc/nix/nix.conf`, but that's too late in the process. Because `/nix/chroot_builds/static_bash`, specified in `build-chroot-dirs`, doesn't exist at a time it's needed, an error is produced, and the install script fails. Currently the only way to get things working is to manually delete `/etc/nix/nix.conf`.\r\n\r\nI suggest finding out where in the process things crash, changing the script to rename `/etc/nix/nix.conf` to something else beforehand, and then restoring the file afterwards if it did exist."},"comment":{"url":"https://api.github.com/repos/aherrmann/nix-multi-user-install/issues/comments/162339834","html_url":"https://github.com/aherrmann/nix-multi-user-install/issues/2#issuecomment-162339834","issue_url":"https://api.github.com/repos/aherrmann/nix-multi-user-install/issues/2","id":162339834,"user":{"login":"aherrmann","id":732652,"avatar_url":"https://avatars.githubusercontent.com/u/732652?v=3","gravatar_id":"","url":"https://api.github.com/users/aherrmann","html_url":"https://github.com/aherrmann","followers_url":"https://api.github.com/users/aherrmann/followers","following_url":"https://api.github.com/users/aherrmann/following{/other_user}","gists_url":"https://api.github.com/users/aherrmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aherrmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aherrmann/subscriptions","organizations_url":"https://api.github.com/users/aherrmann/orgs","repos_url":"https://api.github.com/users/aherrmann/repos","events_url":"https://api.github.com/users/aherrmann/events{/privacy}","received_events_url":"https://api.github.com/users/aherrmann/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T19:30:32Z","updated_at":"2015-12-06T19:30:32Z","body":"@a1russell Thanks for catching that.\r\n\r\nI hope it works now. I'm getting build failures for bash right now due to a mismatching hash for one of the patches (NixOS/nixpkgs#11512). So, it's difficult to test."}}