[{"url":"https://api.github.com/repos/NixOS/nix/issues/7976","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7976/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7976/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7976/events","html_url":"https://github.com/NixOS/nix/issues/7976","id":1610043823,"node_id":"I_kwDOADOq6M5f91Gv","number":7976,"title":"Merge the Profiles section into `nix-env`","user":{"login":"fricklerhandwerk","id":6599296,"node_id":"MDQ6VXNlcjY1OTkyOTY=","avatar_url":"https://avatars.githubusercontent.com/u/6599296?v=4","gravatar_id":"","url":"https://api.github.com/users/fricklerhandwerk","html_url":"https://github.com/fricklerhandwerk","followers_url":"https://api.github.com/users/fricklerhandwerk/followers","following_url":"https://api.github.com/users/fricklerhandwerk/following{/other_user}","gists_url":"https://api.github.com/users/fricklerhandwerk/gists{/gist_id}","starred_url":"https://api.github.com/users/fricklerhandwerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fricklerhandwerk/subscriptions","organizations_url":"https://api.github.com/users/fricklerhandwerk/orgs","repos_url":"https://api.github.com/users/fricklerhandwerk/repos","events_url":"https://api.github.com/users/fricklerhandwerk/events{/privacy}","received_events_url":"https://api.github.com/users/fricklerhandwerk/received_events","type":"User","site_admin":false},"labels":[{"id":384707938,"node_id":"MDU6TGFiZWwzODQ3MDc5Mzg=","url":"https://api.github.com/repos/NixOS/nix/labels/documentation","name":"documentation","color":"fef2c0","default":true,"description":null},{"id":5326923707,"node_id":"LA_kwDOADOq6M8AAAABPYJnuw","url":"https://api.github.com/repos/NixOS/nix/labels/profiles","name":"profiles","color":"e99695","default":false,"description":"Versioned gc root symlinks; nix profile, nix-env"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2023-03-05T03:51:07Z","updated_at":"2023-07-06T14:57:54Z","closed_at":null,"author_association":"CONTRIBUTOR","active_lock_reason":null,"body":"## Problem\r\n\r\nThe manual on [Profiles](https://nixos.org/manual/nix/unstable/package-management/profiles.html) is additional explanation that is mostly misleading beginners due to casual use of `nix-env -i`. We would just remove it according to #7769, but some of that information may still be valuable for `nix-env --set`.\r\n\r\n\r\n> **Important**\r\n> add a [redirect on nixos.org](https://github.com/NixOS/nixos-homepage/blob/master/netlify.toml), otherwise existing links will break\r\n\r\nSince it will touch `nix-env`, this is blocked on #7518.\r\n\r\n## Priorities\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7976/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7976/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7966","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7966/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7966/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7966/events","html_url":"https://github.com/NixOS/nix/issues/7966","id":1609797163,"node_id":"I_kwDOADOq6M5f844r","number":7966,"title":"`nix profile` has bad UX","user":{"login":"bobvanderlinden","id":6375609,"node_id":"MDQ6VXNlcjYzNzU2MDk=","avatar_url":"https://avatars.githubusercontent.com/u/6375609?v=4","gravatar_id":"","url":"https://api.github.com/users/bobvanderlinden","html_url":"https://github.com/bobvanderlinden","followers_url":"https://api.github.com/users/bobvanderlinden/followers","following_url":"https://api.github.com/users/bobvanderlinden/following{/other_user}","gists_url":"https://api.github.com/users/bobvanderlinden/gists{/gist_id}","starred_url":"https://api.github.com/users/bobvanderlinden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobvanderlinden/subscriptions","organizations_url":"https://api.github.com/users/bobvanderlinden/orgs","repos_url":"https://api.github.com/users/bobvanderlinden/repos","events_url":"https://api.github.com/users/bobvanderlinden/events{/privacy}","received_events_url":"https://api.github.com/users/bobvanderlinden/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null},{"id":411905652,"node_id":"MDU6TGFiZWw0MTE5MDU2NTI=","url":"https://api.github.com/repos/NixOS/nix/labels/UX","name":"UX","color":"c5def5","default":false,"description":"The way in which users interact with Nix. Higher level than UI."},{"id":478863310,"node_id":"MDU6TGFiZWw0Nzg4NjMzMTA=","url":"https://api.github.com/repos/NixOS/nix/labels/new-cli","name":"new-cli","color":"c2e0c6","default":false,"description":"Relating to the \"nix\" command"},{"id":5326923707,"node_id":"LA_kwDOADOq6M8AAAABPYJnuw","url":"https://api.github.com/repos/NixOS/nix/labels/profiles","name":"profiles","color":"e99695","default":false,"description":"Versioned gc root symlinks; nix profile, nix-env"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/NixOS/nix/milestones/28","html_url":"https://github.com/NixOS/nix/milestone/28","labels_url":"https://api.github.com/repos/NixOS/nix/milestones/28/labels","id":9880405,"node_id":"MI_kwDOADOq6M4AlsNV","number":28,"title":"nix-command stabilisation","description":"Towards removing the `nix-command` experimental flag and making all of that stable","creator":{"login":"thufschmitt","id":7226587,"node_id":"MDQ6VXNlcjcyMjY1ODc=","avatar_url":"https://avatars.githubusercontent.com/u/7226587?v=4","gravatar_id":"","url":"https://api.github.com/users/thufschmitt","html_url":"https://github.com/thufschmitt","followers_url":"https://api.github.com/users/thufschmitt/followers","following_url":"https://api.github.com/users/thufschmitt/following{/other_user}","gists_url":"https://api.github.com/users/thufschmitt/gists{/gist_id}","starred_url":"https://api.github.com/users/thufschmitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thufschmitt/subscriptions","organizations_url":"https://api.github.com/users/thufschmitt/orgs","repos_url":"https://api.github.com/users/thufschmitt/repos","events_url":"https://api.github.com/users/thufschmitt/events{/privacy}","received_events_url":"https://api.github.com/users/thufschmitt/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":17,"state":"open","created_at":"2023-09-04T12:23:49Z","updated_at":"2024-03-24T13:18:49Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2023-03-04T14:22:45Z","updated_at":"2024-03-22T12:48:43Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"There are quite a few UX problems with `nix profile`. I'd like to document them to give some context:\r\n\r\n- [ ] https://github.com/NixOS/nix/issues/7964\r\n- [ ] https://github.com/NixOS/nix/issues/7965\r\n- [ ] https://github.com/NixOS/nix/issues/10064\r\n- [ ] https://github.com/NixOS/nix/issues/10077\r\n- [ ] https://github.com/NixOS/nix/issues/9801\r\n- [ ] https://github.com/NixOS/nix/issues/10098\r\n- [ ] https://github.com/NixOS/nix/issues/9802\r\n- [ ] https://github.com/NixOS/nix/issues/8704\r\n- [x] https://github.com/NixOS/nix/issues/7487\r\n- [x] https://github.com/NixOS/nix/issues/10162\r\n- [x] https://github.com/NixOS/nix/issues/7962\r\n- [x] https://github.com/NixOS/nix/issues/5587\r\n- [x] https://github.com/NixOS/nix/issues/7530\r\n- [x] https://github.com/NixOS/nix/issues/7960\r\n- [x] https://github.com/NixOS/nix/issues/7961\r\n- [x] https://github.com/NixOS/nix/pull/8678\r\n\r\nI thought I'd gather them here in a single overarching issue, instead of listing the problems all here.\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7966/reactions","total_count":3,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":3,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7966/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7965","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7965/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7965/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7965/events","html_url":"https://github.com/NixOS/nix/issues/7965","id":1609795535,"node_id":"I_kwDOADOq6M5f84fP","number":7965,"title":"`nix profile`s are hard to reproduce","user":{"login":"bobvanderlinden","id":6375609,"node_id":"MDQ6VXNlcjYzNzU2MDk=","avatar_url":"https://avatars.githubusercontent.com/u/6375609?v=4","gravatar_id":"","url":"https://api.github.com/users/bobvanderlinden","html_url":"https://github.com/bobvanderlinden","followers_url":"https://api.github.com/users/bobvanderlinden/followers","following_url":"https://api.github.com/users/bobvanderlinden/following{/other_user}","gists_url":"https://api.github.com/users/bobvanderlinden/gists{/gist_id}","starred_url":"https://api.github.com/users/bobvanderlinden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobvanderlinden/subscriptions","organizations_url":"https://api.github.com/users/bobvanderlinden/orgs","repos_url":"https://api.github.com/users/bobvanderlinden/repos","events_url":"https://api.github.com/users/bobvanderlinden/events{/privacy}","received_events_url":"https://api.github.com/users/bobvanderlinden/received_events","type":"User","site_admin":false},"labels":[{"id":3709171,"node_id":"MDU6TGFiZWwzNzA5MTcx","url":"https://api.github.com/repos/NixOS/nix/labels/feature","name":"feature","color":"0b02e1","default":false,"description":"Feature request or proposal"},{"id":478863310,"node_id":"MDU6TGFiZWw0Nzg4NjMzMTA=","url":"https://api.github.com/repos/NixOS/nix/labels/new-cli","name":"new-cli","color":"c2e0c6","default":false,"description":"Relating to the \"nix\" command"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2023-03-04T14:17:31Z","updated_at":"2023-08-10T09:00:14Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"The main selling point of Nix is reproducibility. However, since `nix profile` doesn't expose its `manifest.json` it is far from trivial to reproduce the same profile on a different system. `manifest.json` seems like a good candidate to be used in `nix shell`, home-manager and NixOS. This gives the best of both worlds: imperative CLI, declarative and shareable configuration. For example, something like this would be nice to have:\r\n\r\n```console\r\n$ nix profile install nixpkgs#cowsay\r\n$ nix profile export manifest.json\r\n# On another system:\r\n$ nix profile import manifest.json\r\n# Or:\r\n$ nix shell --manifest manifest.json\r\n# Or in home-manager:\r\n{\r\n home.profiles.main = lib.importManifest ./manifest.json;\r\n}\r\n```\r\n\r\nThis is similar to what Guix is already doing: https://guix.gnu.org/manual/devel/en/html_node/Writing-Manifests.html","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7965/reactions","total_count":5,"+1":5,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7965/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7964","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7964/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7964/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7964/events","html_url":"https://github.com/NixOS/nix/issues/7964","id":1609794804,"node_id":"I_kwDOADOq6M5f84T0","number":7964,"title":"`nix profile` pins nixpkgs per package","user":{"login":"bobvanderlinden","id":6375609,"node_id":"MDQ6VXNlcjYzNzU2MDk=","avatar_url":"https://avatars.githubusercontent.com/u/6375609?v=4","gravatar_id":"","url":"https://api.github.com/users/bobvanderlinden","html_url":"https://github.com/bobvanderlinden","followers_url":"https://api.github.com/users/bobvanderlinden/followers","following_url":"https://api.github.com/users/bobvanderlinden/following{/other_user}","gists_url":"https://api.github.com/users/bobvanderlinden/gists{/gist_id}","starred_url":"https://api.github.com/users/bobvanderlinden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobvanderlinden/subscriptions","organizations_url":"https://api.github.com/users/bobvanderlinden/orgs","repos_url":"https://api.github.com/users/bobvanderlinden/repos","events_url":"https://api.github.com/users/bobvanderlinden/events{/privacy}","received_events_url":"https://api.github.com/users/bobvanderlinden/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null},{"id":478863310,"node_id":"MDU6TGFiZWw0Nzg4NjMzMTA=","url":"https://api.github.com/repos/NixOS/nix/labels/new-cli","name":"new-cli","color":"c2e0c6","default":false,"description":"Relating to the \"nix\" command"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2023-03-04T14:15:23Z","updated_at":"2023-06-27T21:24:34Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"Installing packages from different sources results in huge downloads. I think it's not what most new users would anticipate, as it deviates from how other package managers deal with this. To make this worse, it's hard to avoid.\r\n\r\nFor example:\r\n\r\n```console\r\n$ nix profile install github:nixos/nixpkgs/nixpkgs-unstable#cowsay\r\n# A week later:\r\n$ nix profile install github:nixos/nixpkgs/nixpkgs-unstable#vim\r\n```\r\n\r\nNow 2 different versions of nixpkgs are pinned. This behavior has a number of downsides:\r\n\r\n* It results in huge downloads (long waiting time)\r\n* It results in huge disk space usage (until all packages are upgraded and store GCed)\r\n* It behaves differently from most package managers, where the package manager is usually pinned to a single package set until you explicitly tell it to update the package set (`apt update`, `pacman -y`, etc).\r\n* It can result in incompatibilities when plugin-like libraries (like in `lib/gtk-3.0`, `lib/qt4/plugins`) are used across multiple packages from differently pinned nixpkgs. These libraries are linked against different versions of glibc, which can result in runtime problems. It's fine if the user explicitly wants to do this, but currently it's the default with `nix profile`.\r\n\r\nThere are some advantages to having a nixpkgs-pin per package, but currently it is the default and shouldn't be something new users need to be aware of.\r\n\r\n* The advantages are that the packages in `nix profile` are kept as-is, thus stable.\r\n* Upgrading individual packages is possible, usually without major problems.","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7964/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7964/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7953","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7953/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7953/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7953/events","html_url":"https://github.com/NixOS/nix/issues/7953","id":1608812902,"node_id":"I_kwDOADOq6M5f5Ilm","number":7953,"title":"`follows` shouldn't be allowed on top-level inputs","user":{"login":"K900","id":386765,"node_id":"MDQ6VXNlcjM4Njc2NQ==","avatar_url":"https://avatars.githubusercontent.com/u/386765?v=4","gravatar_id":"","url":"https://api.github.com/users/K900","html_url":"https://github.com/K900","followers_url":"https://api.github.com/users/K900/followers","following_url":"https://api.github.com/users/K900/following{/other_user}","gists_url":"https://api.github.com/users/K900/gists{/gist_id}","starred_url":"https://api.github.com/users/K900/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K900/subscriptions","organizations_url":"https://api.github.com/users/K900/orgs","repos_url":"https://api.github.com/users/K900/repos","events_url":"https://api.github.com/users/K900/events{/privacy}","received_events_url":"https://api.github.com/users/K900/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2023-03-03T15:14:11Z","updated_at":"2023-03-22T10:45:59Z","closed_at":null,"author_association":"CONTRIBUTOR","active_lock_reason":null,"body":"**Describe the bug**\r\n\r\n```\r\n~/test \r\n❯ cat flake.nix\r\n{\r\n inputs.foo.follows = \"\";\r\n outputs = { self, foo }: builtins.trace foo {};\r\n}\r\n\r\n~/test \r\n❯ nix flake show\r\npath:/home/k900/test?lastModified=1677856227&narHash=sha256-Afw6Ap0gXxAysrdOGH4marLuup1LhJrnIVPfnqH6AZ4=\r\nevaluating ''error: stack overflow (possible infinite recursion)\r\n\r\n~/test \r\n❯ nix --version\r\nnix (Nix) 2.13.3\r\n```\r\n\r\nThis probably shouldn't be allowed, and definitely shouldn't define an input.\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7953/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7953/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7937","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7937/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7937/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7937/events","html_url":"https://github.com/NixOS/nix/issues/7937","id":1605929286,"node_id":"I_kwDOADOq6M5fuIlG","number":7937,"title":" nix-shell -p nix-info --run \"nix-info -m\" fails after installation.","user":{"login":"mohnishkodnani","id":7194964,"node_id":"MDQ6VXNlcjcxOTQ5NjQ=","avatar_url":"https://avatars.githubusercontent.com/u/7194964?v=4","gravatar_id":"","url":"https://api.github.com/users/mohnishkodnani","html_url":"https://github.com/mohnishkodnani","followers_url":"https://api.github.com/users/mohnishkodnani/followers","following_url":"https://api.github.com/users/mohnishkodnani/following{/other_user}","gists_url":"https://api.github.com/users/mohnishkodnani/gists{/gist_id}","starred_url":"https://api.github.com/users/mohnishkodnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohnishkodnani/subscriptions","organizations_url":"https://api.github.com/users/mohnishkodnani/orgs","repos_url":"https://api.github.com/users/mohnishkodnani/repos","events_url":"https://api.github.com/users/mohnishkodnani/events{/privacy}","received_events_url":"https://api.github.com/users/mohnishkodnani/received_events","type":"User","site_admin":false},"labels":[{"id":387031267,"node_id":"MDU6TGFiZWwzODcwMzEyNjc=","url":"https://api.github.com/repos/NixOS/nix/labels/installer","name":"installer","color":"b60205","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2023-03-02T00:50:48Z","updated_at":"2023-07-21T00:21:40Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"## Platform\r\n- [ ] Linux: \r\n- [X] macOS -- aarch64 darwin.\r\n- [ ] WSL\r\n\r\n## Additional information\r\n\r\nSet NIX_SSL_CERT_FILE to the internal certificate file. \r\n\r\n## Output\r\n\r\n\r\n\r\n\r\n```\r\nnix-shell -p nix-info --run \"nix-info -m\"\r\n\r\nerror:\r\n … \r\n\r\n at «none»:0: (source not available)\r\n\r\n … while calling the 'import' builtin\r\n\r\n at «string»:1:18:\r\n\r\n 1| {...}@args: with import args; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ (nix-info) ]; } \"\"\r\n | ^\r\n\r\n (stack trace truncated; use '--show-trace' to show the full trace)\r\n\r\n error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)\r\n\r\n at «none»:0: (source not available)\r\n```\r\n
\r\n\r\nAdded above. but some of the output from the installer is listed here. \r\n\r\n```log\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup-before-nix\r\n\r\nto back up your current /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo tee -a /etc/bash.bashrc\r\n\r\nextend your /etc/bash.bashrc with nix-daemon settings\r\n\r\n\r\n# Nix\r\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\r\n . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\r\nfi\r\n# End Nix\r\n\r\n\r\n~~> Setting up shell profiles for Fish with with conf.d/nix.fish inside /etc/fish /usr/local/etc/fish /opt/homebrew/etc/fish /opt/local/etc/fish\r\n\r\n~~> Setting up the default profile\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo HOME=/var/root /nix/store/4x9975rdvy4r0mybf8ic2ry9j5b0ag2g-nix-2.14.0/bin/nix-env -i /nix/store/4x9975rdvy4r0mybf8ic2ry9j5b0ag2g-nix-2.14.0\r\n\r\nto install a bootstrapping Nix in to the default profile\r\n\r\ninstalling 'nix-2.14.0'\r\nbuilding '/nix/store/0p5xxbqbqdjqknjp7p60f6j05y4s0hx9-user-environment.drv'...\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo HOME=/var/root NIX_SSL_CERT_FILE=/Library/Application Support/Netskope/STAgent/download/nscacert_combined.pem /nix/store/4x9975rdvy4r0mybf8ic2ry9j5b0ag2g-nix-2.14.0/bin/nix-channel --update nixpkgs\r\n\r\nto update the default channel in the default profile\r\n\r\nunpacking channels...\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -m 0664 /var/folders/p2/dsnj50zn5kb1xs6sd9xw76zw0000gq/T/tmp.yvANIt7W/nix.conf /etc/nix/nix.conf\r\n\r\nto place the default nix daemon configuration (part 2)\r\n\r\n\r\n~~> Setting up the nix-daemon LaunchDaemon\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /bin/cp -f /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist /Library/LaunchDaemons/org.nixos.nix-daemon.plist\r\n\r\nto set up the nix-daemon as a LaunchDaemon\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist\r\n\r\nto load the LaunchDaemon plist for nix-daemon\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo launchctl kickstart -k system/org.nixos.nix-daemon\r\n\r\nto start the nix-daemon\r\n\r\nAlright! We're done!\r\nTry it! Open a new terminal, and type:\r\n\r\n $ nix-shell -p nix-info --run \"nix-info -m\"\r\n\r\nThank you for using this installer. If you have any feedback or need\r\nhelp, don't hesitate:\r\n\r\nYou can open an issue at\r\nhttps://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md\r\n\r\nOr get in touch with the community: https://nixos.org/community\r\n\r\n---- Reminders -----------------------------------------------------------------\r\n[ 1 ]\r\nNix won't work in active shell sessions until you restart them.\r\n\r\n```\r\nI also do not find ~/.nix-profile . \r\nI am using zsh as the default shell for my user. \r\nI closed the `Terminal` Process on mac and then ran the nix-shell command and get this error. \r\nShell environment variables\r\n```\r\n__CFBundleIdentifier=com.apple.Terminal\r\nTMPDIR=/var/folders/p2/dsnj50zn5kb1xs6sd9xw76zw0000gq/T/\r\nTERM=xterm-256color\r\nTERM_PROGRAM=Apple_Terminal\r\nTERM_PROGRAM_VERSION=445\r\nTERM_SESSION_ID=780966DA-56FF-4D56-B23E-4D3BB316A8AC\r\nSHELL=/bin/zsh\r\nHOME=/Users/mkodnani\r\nPATH=/Users/mkodnani/.local/state/nix/profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/podman/bin\r\nSHLVL=1\r\nPWD=/Users/mkodnani\r\nOLDPWD=/Users/mkodnani\r\nNIX_PROFILES=/nix/var/nix/profiles/default /Users/mkodnani/.local/state/nix/profile\r\nSSL_CERT_FILE=/Library/Application Support/Netskope/STAgent/download/nscacert_combined.pem\r\nNIX_SSL_CERT_FILE=/Library/Application Support/Netskope/STAgent/download/nscacert_combined.pem\r\nREQUESTS_CA_BUNDLE=/Library/Application Support/Netskope/STAgent/download/nscacert_combined.pem\r\nCURL_CA_BUNDLE=/Library/Application Support/Netskope/STAgent/download/nscacert_combined.pem\r\nLANG=en_US.UTF-8\r\n_=/usr/bin/env\r\n```\r\n \r\n\r\n## Priorities\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7937/reactions","total_count":16,"+1":16,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7937/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7933","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7933/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7933/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7933/events","html_url":"https://github.com/NixOS/nix/issues/7933","id":1605353507,"node_id":"I_kwDOADOq6M5fr8Aj","number":7933,"title":"`builtins.deepSeq` leads to nondeterministic error message","user":{"login":"roberth","id":496447,"node_id":"MDQ6VXNlcjQ5NjQ0Nw==","avatar_url":"https://avatars.githubusercontent.com/u/496447?v=4","gravatar_id":"","url":"https://api.github.com/users/roberth","html_url":"https://github.com/roberth","followers_url":"https://api.github.com/users/roberth/followers","following_url":"https://api.github.com/users/roberth/following{/other_user}","gists_url":"https://api.github.com/users/roberth/gists{/gist_id}","starred_url":"https://api.github.com/users/roberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberth/subscriptions","organizations_url":"https://api.github.com/users/roberth/orgs","repos_url":"https://api.github.com/users/roberth/repos","events_url":"https://api.github.com/users/roberth/events{/privacy}","received_events_url":"https://api.github.com/users/roberth/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null},{"id":1426136687,"node_id":"MDU6TGFiZWwxNDI2MTM2Njg3","url":"https://api.github.com/repos/NixOS/nix/labels/error-messages","name":"error-messages","color":"4de2db","default":false,"description":"Confusing messages and better diagnostics"},{"id":2026899164,"node_id":"MDU6TGFiZWwyMDI2ODk5MTY0","url":"https://api.github.com/repos/NixOS/nix/labels/language","name":"language","color":"7ab50c","default":false,"description":"The Nix expression language; parser, interpreter, primops, evaluation, etc"},{"id":5149625275,"node_id":"LA_kwDOADOq6M8AAAABMvELuw","url":"https://api.github.com/repos/NixOS/nix/labels/idea%20approved","name":"idea approved","color":"00FF55","default":false,"description":"The given proposal has been discussed and approved by the Nix team. An implementation is welcome."}],"state":"open","locked":false,"assignee":null,"assignees":[{"login":"thufschmitt","id":7226587,"node_id":"MDQ6VXNlcjcyMjY1ODc=","avatar_url":"https://avatars.githubusercontent.com/u/7226587?v=4","gravatar_id":"","url":"https://api.github.com/users/thufschmitt","html_url":"https://github.com/thufschmitt","followers_url":"https://api.github.com/users/thufschmitt/followers","following_url":"https://api.github.com/users/thufschmitt/following{/other_user}","gists_url":"https://api.github.com/users/thufschmitt/gists{/gist_id}","starred_url":"https://api.github.com/users/thufschmitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thufschmitt/subscriptions","organizations_url":"https://api.github.com/users/thufschmitt/orgs","repos_url":"https://api.github.com/users/thufschmitt/repos","events_url":"https://api.github.com/users/thufschmitt/events{/privacy}","received_events_url":"https://api.github.com/users/thufschmitt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2023-03-01T17:10:00Z","updated_at":"2023-03-13T12:08:17Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"**Describe the bug**\r\n\r\n`forceValueDeep` processes attributes in symbol id order instead of alphabetically. Although this is a small deficiency not observable in the \"happy world\" of successful evaluations, it does affect our ability to provide helpful error messages in attrsets that should never be traversed (such as `pkgs` or a NixOS `config`; both are too big and are designed to contain some errors, which would be confusing, as they don't point to the root cause, which is the traversal).\r\n\r\n**Steps To Reproduce**\r\n\r\n```\r\nnix-repl> builtins.deepSeq { a = throw \"a\"; b = throw \"b\"; } true \r\nerror: a\r\n\r\nnix-repl> builtins.deepSeq { d = throw \"d\"; c = throw \"c\"; } true \r\nerror: d\r\n\r\n```\r\n\r\nThe latter looks innocent, because surely the first attribute goes first, but that's not how attribute sets are defined. They contain no ordering information! This behavior is an artifact of how symbols are implemented.\r\n\r\n**Expected behavior**\r\n\r\n`deepSeq` evaluates the lexicographically smallest attribute first.\r\n\r\n**`nix-env --version` output**\r\n\r\n**Additional context**\r\n\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7933/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7933/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7931","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7931/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7931/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7931/events","html_url":"https://github.com/NixOS/nix/issues/7931","id":1604827235,"node_id":"I_kwDOADOq6M5fp7hj","number":7931,"title":"improve feedback when nix cant find build log ?","user":{"login":"teto","id":886074,"node_id":"MDQ6VXNlcjg4NjA3NA==","avatar_url":"https://avatars.githubusercontent.com/u/886074?v=4","gravatar_id":"","url":"https://api.github.com/users/teto","html_url":"https://github.com/teto","followers_url":"https://api.github.com/users/teto/followers","following_url":"https://api.github.com/users/teto/following{/other_user}","gists_url":"https://api.github.com/users/teto/gists{/gist_id}","starred_url":"https://api.github.com/users/teto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teto/subscriptions","organizations_url":"https://api.github.com/users/teto/orgs","repos_url":"https://api.github.com/users/teto/repos","events_url":"https://api.github.com/users/teto/events{/privacy}","received_events_url":"https://api.github.com/users/teto/received_events","type":"User","site_admin":false},"labels":[{"id":478863310,"node_id":"MDU6TGFiZWw0Nzg4NjMzMTA=","url":"https://api.github.com/repos/NixOS/nix/labels/new-cli","name":"new-cli","color":"c2e0c6","default":false,"description":"Relating to the \"nix\" command"},{"id":1426136687,"node_id":"MDU6TGFiZWwxNDI2MTM2Njg3","url":"https://api.github.com/repos/NixOS/nix/labels/error-messages","name":"error-messages","color":"4de2db","default":false,"description":"Confusing messages and better diagnostics"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2023-03-01T11:55:51Z","updated_at":"2023-03-05T04:33:00Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"## Problem\r\n\r\n\r\nI do locally `nix build .#pkg`\r\nSometimes `nix log ./result` returns a result ('-v' shows \"got build log for '/nix/store/iy04j8n4m23m5bxnfbpr4kxyc8pq8qha-pkg' from 'daemon'), sometimes it fails with:\r\n`error: build log of '/nix/store/iy04j8n4m23m5bxnfbpr4kxyc8pq8qha-pkg' is not available`.\r\n\r\nAs the build is local, logs should be in /nix/var/log/nix/drvs/. \r\nI can indeed find my pkg log when sorting that folder by creation date, hence my first complaint:\r\ncould `nix log -vvvvv` show the fullpath towards the log ? \r\n\r\nI am not sure how /nix/var/log/nix/drvs/ gets cleaned up (reboot ?) but I can recreate the error if I `sudo rm /nix/var/log/nix/drvs/path-tolog.bz2`.\r\nTo regenerate the log, I run `nix build .#pkg --rebuild` and the log appears again. So My second suggestion would be to hint about this either in the error message, e.g.: \r\n`error: build log of '/nix/store/iy04j8n4m23m5bxnfbpr4kxyc8pq8qha-pkg' is not available. You can generate it by rebuilding the derivation.`.\r\nor the manpage `nix log --help` (or both).\r\n\r\n## Checklist\r\n\r\n\r\n\r\n- [x] checked [latest Nix manual] \\([source])\r\n- [x] checked [open documentation issues and pull requests] for possible duplicates\r\n\r\n[latest Nix manual]: https://nixos.org/manual/nix/unstable/\r\n[source]: https://github.com/NixOS/nix/tree/master/doc/manual/src\r\n[open documentation issues and pull requests]: https://github.com/NixOS/nix/labels/documentation\r\n\r\n## Proposal\r\n\r\n1. have `nix log -vvvvv` show the fullpath towards the log\r\n2. when log is not available, hint user about rebuilding package to regenerate the log.\r\n\r\n\r\n\r\n## Priorities\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n.","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7931/reactions","total_count":4,"+1":4,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7931/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7923","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7923/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7923/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7923/events","html_url":"https://github.com/NixOS/nix/issues/7923","id":1603910992,"node_id":"I_kwDOADOq6M5fmb1Q","number":7923,"title":"File positions are byte based instead; not UTF-8 / unicode aware","user":{"login":"roberth","id":496447,"node_id":"MDQ6VXNlcjQ5NjQ0Nw==","avatar_url":"https://avatars.githubusercontent.com/u/496447?v=4","gravatar_id":"","url":"https://api.github.com/users/roberth","html_url":"https://github.com/roberth","followers_url":"https://api.github.com/users/roberth/followers","following_url":"https://api.github.com/users/roberth/following{/other_user}","gists_url":"https://api.github.com/users/roberth/gists{/gist_id}","starred_url":"https://api.github.com/users/roberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberth/subscriptions","organizations_url":"https://api.github.com/users/roberth/orgs","repos_url":"https://api.github.com/users/roberth/repos","events_url":"https://api.github.com/users/roberth/events{/privacy}","received_events_url":"https://api.github.com/users/roberth/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null},{"id":1426136687,"node_id":"MDU6TGFiZWwxNDI2MTM2Njg3","url":"https://api.github.com/repos/NixOS/nix/labels/error-messages","name":"error-messages","color":"4de2db","default":false,"description":"Confusing messages and better diagnostics"},{"id":2026899164,"node_id":"MDU6TGFiZWwyMDI2ODk5MTY0","url":"https://api.github.com/repos/NixOS/nix/labels/language","name":"language","color":"7ab50c","default":false,"description":"The Nix expression language; parser, interpreter, primops, evaluation, etc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2023-02-28T22:28:28Z","updated_at":"2023-03-16T22:08:25Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"**Is your feature request related to a problem? Please describe.**\r\n\r\nFile positions, columns in particular, are currently computed by counting bytes, ASCII style, but most tooling reads it as UTF-8, with the outcome that the columns don't match. This leads to the cursor going to the wrong place when clicking an error, or reading the `^` squiggle in error messages.\r\n\r\n**Describe the solution you'd like**\r\n\r\nSomething that doesn't cost performance. Errors are the uncommon case, so it'd be fine to keep representing positions in bytes internally, but compute the correct value right before printing. If we can have UTF-8 based positions for cheap/free, we should keep it simple.\r\n\r\n\r\n**Describe alternatives you've considered**\r\n\r\nPut up with it. Most sources don't have a lot of multi byte characters, and when they do, it's not always significant enough to cause confusion. Some foreign users will disagree though!\r\n\r\n**Additional context**\r\n\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7923/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7923/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7917","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7917/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7917/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7917/events","html_url":"https://github.com/NixOS/nix/pull/7917","id":1603356894,"node_id":"PR_kwDOADOq6M5K8jwP","number":7917,"title":"Sort build results by severity and message error body","user":{"login":"EduardoLR10","id":38084011,"node_id":"MDQ6VXNlcjM4MDg0MDEx","avatar_url":"https://avatars.githubusercontent.com/u/38084011?v=4","gravatar_id":"","url":"https://api.github.com/users/EduardoLR10","html_url":"https://github.com/EduardoLR10","followers_url":"https://api.github.com/users/EduardoLR10/followers","following_url":"https://api.github.com/users/EduardoLR10/following{/other_user}","gists_url":"https://api.github.com/users/EduardoLR10/gists{/gist_id}","starred_url":"https://api.github.com/users/EduardoLR10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduardoLR10/subscriptions","organizations_url":"https://api.github.com/users/EduardoLR10/orgs","repos_url":"https://api.github.com/users/EduardoLR10/repos","events_url":"https://api.github.com/users/EduardoLR10/events{/privacy}","received_events_url":"https://api.github.com/users/EduardoLR10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2023-02-28T16:04:52Z","updated_at":"2023-03-10T21:48:42Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/NixOS/nix/pulls/7917","html_url":"https://github.com/NixOS/nix/pull/7917","diff_url":"https://github.com/NixOS/nix/pull/7917.diff","patch_url":"https://github.com/NixOS/nix/pull/7917.patch","merged_at":null},"body":"# Motivation\r\nSeeking to show relevant error messages for the developer in order to speed up diagnosis during the troubleshooting of build results.\r\n\r\n# Context\r\nIn some production code, there was an empty error message during a `nix build` and it turns out that it had a `MiscFailure` before a `PermanentFailure`, and the former contained an empty error message while the latter had the expected error message (the error message was obtained using `nix-build`). Because the first non-success status rethrows an exception, the first error being a `MiscFailure`, it ended with no logs in the console at all, i.e., it only had the prefix `error:` as the entire log message, which led to an excessive amount of time in troubleshooting errors throughout the application.\r\n\r\nFor the solution, sorting of build results was added, lowering the priority of results with empty error messages, and using a concept of severity based on the status field of build results that contain non-empty error messages. The assumption is that statuses have different levels of severity, such as `MiscFailure` having less severity than `PermanentFailure`.\r\n\r\n\r\nThe long-term solution may involve investigating the daemon to understand why failures, such as `MiscFailure`, are not providing error messages at all for the nix executable.\r\n\r\n# High-Level Examples\r\n\r\nFor each scenario, here are the behaviors with the proposed suggestion:\r\n\r\n### Scenario 1: All build results ended up with a failure with empty error messages.\r\n No change in behavior.\r\n### Scenario 2: All build results ended up with a failure with only one containing a non-empty error message.\r\n The one with the non-empty error message will be the first in the vector of build results.\r\n### Scenario 3: All build results ended up with a failure with more than one containing non-empty error messages.\r\n The ones with non-empty error messages will be sorted by the severity of their logs.\r\n\r\n# Checklist for maintainers\r\n\r\n\r\n\r\nMaintainers: tick if completed or explain if not relevant\r\n\r\n - [ ] agreed on idea\r\n - [ ] agreed on implementation strategy\r\n - [ ] tests, as appropriate\r\n - functional tests - `tests/**.sh`\r\n - unit tests - `src/*/tests`\r\n - integration tests - `tests/nixos/*`\r\n - [ ] documentation in the manual\r\n - [ ] code and comments are self-explanatory\r\n - [ ] commit message explains why the change was made\r\n - [ ] new feature or incompatible change: updated release notes\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7917/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7917/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7914","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7914/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7914/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7914/events","html_url":"https://github.com/NixOS/nix/issues/7914","id":1601642307,"node_id":"I_kwDOADOq6M5fdx9D","number":7914,"title":"nix-shell doesn't seem to respect NIX_SSL_CERT_FILE","user":{"login":"ksalman","id":1268871,"node_id":"MDQ6VXNlcjEyNjg4NzE=","avatar_url":"https://avatars.githubusercontent.com/u/1268871?v=4","gravatar_id":"","url":"https://api.github.com/users/ksalman","html_url":"https://github.com/ksalman","followers_url":"https://api.github.com/users/ksalman/followers","following_url":"https://api.github.com/users/ksalman/following{/other_user}","gists_url":"https://api.github.com/users/ksalman/gists{/gist_id}","starred_url":"https://api.github.com/users/ksalman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksalman/subscriptions","organizations_url":"https://api.github.com/users/ksalman/orgs","repos_url":"https://api.github.com/users/ksalman/repos","events_url":"https://api.github.com/users/ksalman/events{/privacy}","received_events_url":"https://api.github.com/users/ksalman/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2023-02-27T17:43:37Z","updated_at":"2023-04-17T17:12:39Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"**Describe the bug**\r\n\r\nI am trying to use Nix at work on MacOS, where they've deployed Zscaler. I tried setting NIX_SSL_CERT_FILE to the Zscaler cert but it did not help.\r\n\r\n**Expected behavior**\r\n\r\nnix-shell should run without ssl errors\r\n\r\n```\r\n$ nix-shell -p bash\r\nwarning: error: unable to download 'https://cache.nixos.org/17b5l9alb7qpsp8lmr5n6wxb28gym4jr.narinfo': SSL peer certificate or SSH remote key was not OK (60); retrying in 259 ms\r\nwarning: error: unable to download 'https://cache.nixos.org/69yz72wwqfz7wbx1k2pd1f29wqzh3irl.narinfo': SSL peer certificate or SSH remote key was not OK (60); retrying in 291 ms\r\nwarning: error: unable to download 'https://cache.nixos.org/skr40k4d29vyv4nqdmi7dnfw1bvjqx89.narinfo': SSL peer certificate \r\n^Cerror: interrupted by the user\r\n```\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7914/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7914/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7910","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7910/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7910/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7910/events","html_url":"https://github.com/NixOS/nix/issues/7910","id":1601240786,"node_id":"I_kwDOADOq6M5fcP7S","number":7910,"title":"Make `NixStringContextElem::DrvDeep` opt-in, and maybe deprecate it","user":{"login":"Ericson2314","id":1055245,"node_id":"MDQ6VXNlcjEwNTUyNDU=","avatar_url":"https://avatars.githubusercontent.com/u/1055245?v=4","gravatar_id":"","url":"https://api.github.com/users/Ericson2314","html_url":"https://github.com/Ericson2314","followers_url":"https://api.github.com/users/Ericson2314/followers","following_url":"https://api.github.com/users/Ericson2314/following{/other_user}","gists_url":"https://api.github.com/users/Ericson2314/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericson2314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericson2314/subscriptions","organizations_url":"https://api.github.com/users/Ericson2314/orgs","repos_url":"https://api.github.com/users/Ericson2314/repos","events_url":"https://api.github.com/users/Ericson2314/events{/privacy}","received_events_url":"https://api.github.com/users/Ericson2314/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2023-02-27T13:58:52Z","updated_at":"2023-05-12T01:42:48Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"Currently, `drvPath` attributes have a very weird `DrvDeep` nix string context elem. This string context element makes refer to\r\n\r\n> all the outputs of all the derivations in the the closure of the path.\r\n\r\nThe \"all the outputs part\" is really weird! `builtins.unsafeDiscardOutputDependency` turns this back to a regular string context, but it is unfortunate to have to use an \"unsafe\" function to get back to the more normal behavior.\r\n\r\nInstead, it would be nice if `drvPath` had a regular `Opaque` string context, and instead there was a primop to do the opposite: turn a string with a single such opaque string context elem to one with a single drv-deep string context elem.\r\n\r\nSee also #7330\r\n\r\n##### TODO\r\n\r\n - [ ] Add a `builtins.addDrvOutputDependencies` primop\r\n - [ ] Wait for Nix on NixOS stable to support it\r\n - [ ] Add `builtins.unsafeDiscardOutputDependency` to Nixpkgs `mkDerivation`'s `drvPath`.","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7910/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7910/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7909","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7909/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7909/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7909/events","html_url":"https://github.com/NixOS/nix/issues/7909","id":1600591421,"node_id":"I_kwDOADOq6M5fZxY9","number":7909,"title":"Nix Installation getting failed in docker container","user":{"login":"Ramprakash-1992","id":77932120,"node_id":"MDQ6VXNlcjc3OTMyMTIw","avatar_url":"https://avatars.githubusercontent.com/u/77932120?v=4","gravatar_id":"","url":"https://api.github.com/users/Ramprakash-1992","html_url":"https://github.com/Ramprakash-1992","followers_url":"https://api.github.com/users/Ramprakash-1992/followers","following_url":"https://api.github.com/users/Ramprakash-1992/following{/other_user}","gists_url":"https://api.github.com/users/Ramprakash-1992/gists{/gist_id}","starred_url":"https://api.github.com/users/Ramprakash-1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ramprakash-1992/subscriptions","organizations_url":"https://api.github.com/users/Ramprakash-1992/orgs","repos_url":"https://api.github.com/users/Ramprakash-1992/repos","events_url":"https://api.github.com/users/Ramprakash-1992/events{/privacy}","received_events_url":"https://api.github.com/users/Ramprakash-1992/received_events","type":"User","site_admin":false},"labels":[{"id":387031267,"node_id":"MDU6TGFiZWwzODcwMzEyNjc=","url":"https://api.github.com/repos/NixOS/nix/labels/installer","name":"installer","color":"b60205","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2023-02-27T06:56:41Z","updated_at":"2023-08-10T02:12:21Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"While Executing Nix install command using Mutli-user installation \r\n$ sh <(curl -L https://nixos.org/nix/install) --daemon\r\n\r\n % Total % Received % Xferd Average Speed Time Time Time Current\r\n Dload Upload Total Spent Left Speed\r\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r\n100 4052 100 4052 0 0 8406 0 --:--:-- --:--:-- --:--:-- 8406\r\ndownloading Nix 2.13.2 binary tarball for x86_64-linux from 'https://releases.nixos.org/nix/nix-2.13.2/nix-2.13.2-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.OclwxY7mrP'...\r\n % Total % Received % Xferd Average Speed Time Time Time Current\r\n Dload Upload Total Spent Left Speed\r\n100 20.0M 100 20.0M 0 0 38.9M 0 --:--:-- --:--:-- --:--:-- 38.9M\r\nNote: a multi-user installation is possible. See https://nixos.org/manual/nix/stable/installation/installing-binary.html#multi-user-installation\r\nSwitching to the Multi-user Installer\r\nWelcome to the Multi-User Nix Installation\r\n\r\nThis installation tool will set up your computer with the Nix package\r\nmanager. This will happen in a few stages:\r\n\r\n1. Make sure your computer doesn't already have Nix. If it does, I\r\n will show you instructions on how to clean up your old install.\r\n\r\n2. Show you what I am going to install and where. Then I will ask\r\n if you are ready to continue.\r\n\r\n3. Create the system users and groups that the Nix daemon uses to run\r\n builds.\r\n\r\n4. Perform the basic installation of the Nix files daemon.\r\n\r\n5. Configure your shell to import special Nix Profile files, so you\r\n can use Nix.\r\n\r\n6. Start the Nix daemon.\r\n\r\nWould you like to see a more detailed list of what I will do?\r\n[y/n] y\r\n\r\n\r\nI will:\r\n\r\n - make sure your computer doesn't already have Nix files\r\n (if it does, I will tell you how to clean them up.)\r\n - create local users (see the list above for the users I'll make)\r\n - create a local group (nixbld)\r\n - install Nix in to /nix\r\n - create a configuration file in /etc/nix\r\n - set up the \"default profile\" by creating some Nix-related files in\r\n /root\r\n - back up /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix\r\n - update /etc/bash.bashrc to include some Nix configuration\r\n - load and start a service (at /etc/systemd/system/nix-daemon.service\r\n and /etc/systemd/system/nix-daemon.socket) for nix-daemon\r\n\r\nReady to continue?\r\n[y/n] y\r\n\r\n\r\n~~> Checking for artifacts of previous installs\r\nBefore I try to install, I'll check for signs Nix already is or has\r\nbeen installed on this system.\r\n\r\n---- warning! ------------------------------------------------------------------\r\nWe did not detect systemd on your system. With a multi-user install\r\nwithout systemd you will have to manually configure your init system to\r\nlaunch the Nix daemon after installation.\r\n\r\nDo you want to proceed with a multi-user installation?\r\n[y/n] y\r\n\r\n\r\n---- Nix config report ---------------------------------------------------------\r\n Temp Dir: /tmp/tmp.jMmzUaA0as\r\n Nix Root: /nix\r\n Build Users: 32\r\n Build Group ID: 30000\r\nBuild Group Name: nixbld\r\n\r\nbuild users:\r\n Username: UID\r\n nixbld1: 30001\r\n nixbld2: 30002\r\n nixbld3: 30003\r\n nixbld4: 30004\r\n nixbld5: 30005\r\n nixbld6: 30006\r\n nixbld7: 30007\r\n nixbld8: 30008\r\n nixbld9: 30009\r\n nixbld10: 30010\r\n nixbld11: 30011\r\n nixbld12: 30012\r\n nixbld13: 30013\r\n nixbld14: 30014\r\n nixbld15: 30015\r\n nixbld16: 30016\r\n nixbld17: 30017\r\n nixbld18: 30018\r\n nixbld19: 30019\r\n nixbld20: 30020\r\n nixbld21: 30021\r\n nixbld22: 30022\r\n nixbld23: 30023\r\n nixbld24: 30024\r\n nixbld25: 30025\r\n nixbld26: 30026\r\n nixbld27: 30027\r\n nixbld28: 30028\r\n nixbld29: 30029\r\n nixbld30: 30030\r\n nixbld31: 30031\r\n nixbld32: 30032\r\n\r\nReady to continue?\r\n[y/n] y\r\n\r\n\r\n~~> Setting up the build group nixbld\r\n Exists: Yes\r\n\r\n~~> Setting up the build user nixbld1\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 1\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld2\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 2\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld3\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 3\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld4\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 4\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld5\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 5\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld6\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 6\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld7\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 7\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld8\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 8\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld9\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 9\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld10\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 10\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld11\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 11\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld12\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 12\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld13\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 13\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld14\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 14\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld15\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 15\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld16\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 16\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld17\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 17\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld18\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 18\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld19\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 19\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld20\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 20\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld21\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 21\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld22\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 22\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld23\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 23\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld24\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 24\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld25\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 25\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld26\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 26\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld27\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 27\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld28\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 28\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld29\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 29\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld30\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 30\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld31\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 31\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the build user nixbld32\r\n Exists: Yes\r\n Hidden: Yes\r\n Home Directory: /var/empty\r\n Note: Nix build user 32\r\n Logins Disabled: Yes\r\n Member of nixbld: Yes\r\n PrimaryGroupID: 30000\r\n\r\n~~> Setting up the basic directory structure\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /bin/chown -R root:nixbld /nix\r\n\r\nto take root ownership of existing Nix store files\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -dv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/daemon-socket /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user\r\n\r\nto make the basic directory structure of Nix (part 1)\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -dv -g nixbld -m 1775 /nix/store\r\n\r\nto make the basic directory structure of Nix (part 2)\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -dv -m 0555 /etc/nix\r\n\r\nto place the default nix daemon configuration (part 1)\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -m 0664 /tmp/tmp.jMmzUaA0as/.nix-channels /root/.nix-channels\r\n\r\nto set up the default system channel (part 1)\r\n\r\n\r\n~~> Installing Nix\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo cp -RPp ./store/026hln0aq1hyshaxsdvhg0kmcm6yf45r-zlib-1.2.13 ./store/1f3pdcihv4mmgfsyw4jxqjvn7j5sc2xy-aws-c-mqtt-0.7.13 ./store/20d2d0jap81kxp5ng1igl7kkgnd077f3-libcpuid-0.6.2 ./store/34xlpp3j3vy7ksn09zh44f1c04w77khf-libunistring-1.0 ./store/3j1h6psl4pzn6b3yck6rk33bpwrmihb1-aws-c-common-0.8.5 ./store/3n9vwzn9wkq7cj93jp0s6gqpx1zbhvlj-libarchive-3.6.1-lib ./store/3rj4dwafjii1wi2f5va26hindims9zyz-boehm-gc-8.2.2 ./store/3z091ijyij0mmgi3iv0mp945lm2bx4wy-aws-checksums-0.1.13 ./store/4mxnw95jcm5a27qk60z7yc0gvxp42b9a-openssl-3.0.7 ./store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163 ./store/4rkhsf7sig2lh303bygqr3ph5mfwz0ah-s2n-tls-1.3.28 ./store/50si0kkawnfkgs8m7d8iv2zmkq0fdbm7-aws-c-event-stream-0.2.15 ./store/5glq0q102jva5p0h9ap0f1j9ps24gcc0-aws-sdk-cpp-1.9.294 ./store/5mh5019jigj0k14rdnjam1xwk5avn1id-libidn2-2.3.2 ./store/5q73izqsdasz81gma1nz6870b6220vkh-aws-crt-cpp-0.18.9 ./store/6qqybxxz6636jymz8x7l2sxj4np9yzsy-aws-c-cal-0.5.20 ./store/7b943a2k4amjmam6dnwnxnj8qbba9lbq-busybox-static-x86_64-unknown-linux-musl-1.35.0 ./store/7q41sbf04qcwv75j5bxis6pfjnmshy44-acl-2.3.1 ./store/816qwr4xy058451rbxr0ccyh1v1akhb6-keyutils-1.6.3-lib ./store/84px25a6dsmdg7ni7186rmkybq1k2vrf-aws-c-s3-0.1.51 ./store/9iy1ng7h1l6jdmjk157jra8n4hkrfdj1-brotli-1.0.9-lib ./store/9x6jfl84234im3f4gsrl1js3zyqz76jd-nlohmann_json-3.11.2 ./store/a6q74vrxbsrmmw1z0fdzd0qrcm6dc0ll-aws-c-http-0.6.27 ./store/b7ac47isdc4z1ajln6adz3ppcjs1708b-libsodium-1.0.18 ./store/ba4f8msp39cfvfpw3m7fsalb4psw347z-nss-cacert-3.83 ./store/bwsyv47ri47ppr4ga34wd2khk89ch4n4-aws-c-auth-0.6.21 ./store/c8byvs0rj8vg5cpm5mswcg5dvp7d5ir7-libseccomp-2.5.4-lib ./store/cr5fmwri3601s7724ayjvckhsg6cz4rv-attr-2.5.1 ./store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16 ./store/f116ly4fl72zc5ynb03qrwdk2bp8y61p-aws-c-io-0.13.11 ./store/fph0r1qjhsygrb420y2zsfhjh3rssq0z-aws-c-sdkutils-0.1.7 ./store/h5slhj7gqpqh5q4jb00xdbcwbl8vqqa7-libxml2-2.10.3 ./store/il7dydwf1wfn9b4p4cii8q99b93i106n-editline-1.17.1 ./store/jpj9lx0p2h1vs3gkzj8jh350113bsm84-sqlite-3.39.4 ./store/lsr79q5xqd9dv97wn87x12kzax8s8i1s-nix-2.13.2 ./store/mdck89nsfisflwjv6xv8ydj7dj0sj2pn-gcc-11.3.0-lib ./store/qz400bwshaqikj5s2qyvh0c9qffgmqik-nghttp2-1.49.0-lib ./store/r7gl900my2fw6k33nxh2r7rzv8nv0s25-libkrb5-1.20 ./store/rirzp6ijbcwnxlf0b2n286n587r3z9jw-curl-7.86.0 ./store/vqq9s0d6fw6kqf3sr5nrzqbys9rhygqd-libssh2-1.10.0 ./store/w10in9diaqrcqqxi5lg20n3q2jfpk6pq-zstd-1.5.2 ./store/w3sdhqiazzp4iy40wc2g85mv0grg1cx0-xz-5.2.7 ./store/wnxn8173p8gj888wwgv2l9czp7zf4jl3-aws-c-compression-0.2.16 ./store/ysl6qj5r7nn63b16954dhk7x47r5yq7i-bzip2-1.0.8 /nix/store/\r\n\r\nto copy the basic Nix files to the new store at /nix/store\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo chmod -R ugo-w /nix/store/\r\n\r\nto make the new store non-writable at /nix/store\r\n\r\n Alright! We have our first nix at /nix/store/lsr79q5xqd9dv97wn87x12kzax8s8i1s-nix-2.13.2\r\n\r\n**---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo HOME=/root /nix/store/lsr79q5xqd9dv97wn87x12kzax8s8i1s-nix-2.13.2/bin/nix-store --load-db\r\n\r\nto load data for the first time in to the Nix Database\r\n\r\nerror: Operation not permitted\r\n![Screenshot 2023-02-27 122552](https://user-images.githubusercontent.com/77932120/221494959-f465e92a-2f14-4ad5-ac62-d13db34ab0ea.png)\r\n\r\n---- oh no! --------------------------------------------------------------------\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7909/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7909/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7908","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7908/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7908/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7908/events","html_url":"https://github.com/NixOS/nix/issues/7908","id":1599978074,"node_id":"I_kwDOADOq6M5fXbpa","number":7908,"title":"nix-static: problems on common distros","user":{"login":"DavHau","id":42246742,"node_id":"MDQ6VXNlcjQyMjQ2NzQy","avatar_url":"https://avatars.githubusercontent.com/u/42246742?v=4","gravatar_id":"","url":"https://api.github.com/users/DavHau","html_url":"https://github.com/DavHau","followers_url":"https://api.github.com/users/DavHau/followers","following_url":"https://api.github.com/users/DavHau/following{/other_user}","gists_url":"https://api.github.com/users/DavHau/gists{/gist_id}","starred_url":"https://api.github.com/users/DavHau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavHau/subscriptions","organizations_url":"https://api.github.com/users/DavHau/orgs","repos_url":"https://api.github.com/users/DavHau/repos","events_url":"https://api.github.com/users/DavHau/events{/privacy}","received_events_url":"https://api.github.com/users/DavHau/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2023-02-26T08:56:55Z","updated_at":"2023-02-27T10:02:17Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"I set up a test pipeline that tests `nix-static` against a list of different distros. As of now:\r\n - arch\r\n - centos7\r\n - debian\r\n - fedora\r\n - nixos\r\n - ubuntu\r\n - debian-aarch64\r\n\r\nI just re-used the pipeline that I already maintain for [nix-portable](https://github.com/DavHau/nix-portable).\r\nThe tests for nix-static are prefixed with `Test nix-static`. ([example run](https://github.com/DavHau/nix-portable/actions/runs/4274023938/jobs/7440338500))\r\n\r\nThe following problems occurred:\r\n\r\n### 1. dependency on external git\r\n`builtins.fetchGit` fails if no git is available. This might seem like an easy fix for the end user, but considering that a static nix is often needed because of a lack of permissions to install software, **just installing git** might not be an option.\r\n\r\nI suggest that nix should either get rid of the external git dependency, or ship a static git alongside `nix-static`.\r\n\r\n### 2. NIX_PATH is unset\r\nMost nix commands will just fail, because NIX_PATH=nixpkgs isn't set.\r\nThis makes `nix-static` not being a great candidate for `trying out nix`, because fixing the NIX_PATH issue requires fundamental understanding of nix' internal mechanisms.\r\nAlso `plug and play` style use cases become more cumbersome because of this. \r\n\r\nA static nix should optimally be configuration free.\r\n\r\nI suggest that in case `NIX_PATH=nixpkgs` is unset, nix just defaults to:\r\n`NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/tarball/nixos-unstable`\r\n\r\n### 3. `nix-shell -p` fails \r\n\r\nAs seen in [this job](https://github.com/DavHau/nix-portable/actions/runs/4274023938/jobs/7440338500) `nix-shell -p` fails, because the paths it downloads cannot be found.\r\n\r\nI guess that there is some problem with the sandboxing strategy, but I'm not sure.\r\n\r\n---\r\nPinging you @tomberek as I remember you asking about this topic some time ago.\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7908/reactions","total_count":4,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":2,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7908/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7907","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7907/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7907/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7907/events","html_url":"https://github.com/NixOS/nix/issues/7907","id":1599938574,"node_id":"I_kwDOADOq6M5fXSAO","number":7907,"title":"rename flake output `hydraJobs` to `jobs`","user":{"login":"DavHau","id":42246742,"node_id":"MDQ6VXNlcjQyMjQ2NzQy","avatar_url":"https://avatars.githubusercontent.com/u/42246742?v=4","gravatar_id":"","url":"https://api.github.com/users/DavHau","html_url":"https://github.com/DavHau","followers_url":"https://api.github.com/users/DavHau/followers","following_url":"https://api.github.com/users/DavHau/following{/other_user}","gists_url":"https://api.github.com/users/DavHau/gists{/gist_id}","starred_url":"https://api.github.com/users/DavHau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavHau/subscriptions","organizations_url":"https://api.github.com/users/DavHau/orgs","repos_url":"https://api.github.com/users/DavHau/repos","events_url":"https://api.github.com/users/DavHau/events{/privacy}","received_events_url":"https://api.github.com/users/DavHau/received_events","type":"User","site_admin":false},"labels":[{"id":3709171,"node_id":"MDU6TGFiZWwzNzA5MTcx","url":"https://api.github.com/repos/NixOS/nix/labels/feature","name":"feature","color":"0b02e1","default":false,"description":"Feature request or proposal"},{"id":384707938,"node_id":"MDU6TGFiZWwzODQ3MDc5Mzg=","url":"https://api.github.com/repos/NixOS/nix/labels/documentation","name":"documentation","color":"fef2c0","default":true,"description":null},{"id":1364639313,"node_id":"MDU6TGFiZWwxMzY0NjM5MzEz","url":"https://api.github.com/repos/NixOS/nix/labels/flakes","name":"flakes","color":"f9a4cb","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2023-02-26T05:39:29Z","updated_at":"2023-03-16T22:09:34Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"There is a growing number of nix native CI systems besides hydra and nix should not lock into any specific one.\r\nThe current `hydraJobs` is just a tree of derivations. There is no reason why it should not execute on eg. `hercules-ci`, `garnix`, or even `github actions`.\r\n\r\nLet's fix this by renaming `hydraJobs` to `jobs`\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7907/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7907/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7906","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7906/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7906/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7906/events","html_url":"https://github.com/NixOS/nix/issues/7906","id":1599865016,"node_id":"I_kwDOADOq6M5fXAC4","number":7906,"title":"Nix does not work with selinux enabled yet!","user":{"login":"mysticphantomninja","id":126361138,"node_id":"U_kgDOB4geMg","avatar_url":"https://avatars.githubusercontent.com/u/126361138?v=4","gravatar_id":"","url":"https://api.github.com/users/mysticphantomninja","html_url":"https://github.com/mysticphantomninja","followers_url":"https://api.github.com/users/mysticphantomninja/followers","following_url":"https://api.github.com/users/mysticphantomninja/following{/other_user}","gists_url":"https://api.github.com/users/mysticphantomninja/gists{/gist_id}","starred_url":"https://api.github.com/users/mysticphantomninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysticphantomninja/subscriptions","organizations_url":"https://api.github.com/users/mysticphantomninja/orgs","repos_url":"https://api.github.com/users/mysticphantomninja/repos","events_url":"https://api.github.com/users/mysticphantomninja/events{/privacy}","received_events_url":"https://api.github.com/users/mysticphantomninja/received_events","type":"User","site_admin":false},"labels":[{"id":387031267,"node_id":"MDU6TGFiZWwzODcwMzEyNjc=","url":"https://api.github.com/repos/NixOS/nix/labels/installer","name":"installer","color":"b60205","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2023-02-25T22:50:35Z","updated_at":"2023-11-27T14:53:43Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"## Platform\r\n\r\nFedora Linux... I have been been a long user of Fedora Linux however I've used Ubuntu and Arch-based distributions on my old laptop, and switched my main computer over to EndeavourOS for a few months, however I've switched back to Fedora during the last month. NixOS doesn't install on Fedora, however installs successfully on Ubuntu and Arch-based distributions. NixOS \r\n doesn't actually work on Fedora as I recieve the following message in the terminal:\r\n~~~\r\nSwitching to the Multi-user Installer\r\n\r\n---- oh no! --------------------------------------------------------------------\r\nNix does not work with selinux enabled yet!\r\nsee https://github.com/NixOS/nix/issues/2374\r\n\r\nWe'd love to help if you need it.\r\n\r\nYou can open an issue at\r\nhttps://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md\r\n\r\nOr get in touch with the community: https://nixos.org/community\r\n\r\n~~~\r\n\r\n\r\nI've looked up information regarding this, however I've wondered is there a work around to get NixOS installed on Fedora?\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7906/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7906/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7900","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7900/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7900/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7900/events","html_url":"https://github.com/NixOS/nix/issues/7900","id":1597998279,"node_id":"I_kwDOADOq6M5fP4TH","number":7900,"title":"Error Trace too long","user":{"login":"davidak","id":91113,"node_id":"MDQ6VXNlcjkxMTEz","avatar_url":"https://avatars.githubusercontent.com/u/91113?v=4","gravatar_id":"","url":"https://api.github.com/users/davidak","html_url":"https://github.com/davidak","followers_url":"https://api.github.com/users/davidak/followers","following_url":"https://api.github.com/users/davidak/following{/other_user}","gists_url":"https://api.github.com/users/davidak/gists{/gist_id}","starred_url":"https://api.github.com/users/davidak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidak/subscriptions","organizations_url":"https://api.github.com/users/davidak/orgs","repos_url":"https://api.github.com/users/davidak/repos","events_url":"https://api.github.com/users/davidak/events{/privacy}","received_events_url":"https://api.github.com/users/davidak/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null},{"id":1426136687,"node_id":"MDU6TGFiZWwxNDI2MTM2Njg3","url":"https://api.github.com/repos/NixOS/nix/labels/error-messages","name":"error-messages","color":"4de2db","default":false,"description":"Confusing messages and better diagnostics"},{"id":2026899164,"node_id":"MDU6TGFiZWwyMDI2ODk5MTY0","url":"https://api.github.com/repos/NixOS/nix/labels/language","name":"language","color":"7ab50c","default":false,"description":"The Nix expression language; parser, interpreter, primops, evaluation, etc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2023-02-24T06:45:46Z","updated_at":"2023-12-22T02:48:50Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"**Describe the bug**\r\n\r\nhttps://gist.github.com/davidak/58b2ecbebf3de8c47f2abcbe9957e8fb\r\n\r\nThis error message is quite clear:\r\n\r\n>error: attribute 'i686-linux' missing in `p3x-onenote/default.nix`\r\n\r\nI would be able too check it out.\r\n\r\nBut there are 100 lines that are not needed and confusing. If you think such a trace is useful, show it in a different way!\r\n\r\nI also don't know why the package p3x-onenote is even involved in this command, but that's some nixpkgs mystery.\r\n\r\n**Steps To Reproduce**\r\n\r\n1. Go to '...'\r\n2. Click on '....'\r\n3. Scroll down to '....'\r\n4. See error\r\n\r\n**Expected behavior**\r\n\r\nShort and clear error message i can act on.\r\n\r\n**`nix-env --version` output** nix-env (Nix) 2.11.1\r\n\r\n**Additional context**\r\n\r\nSimilar to https://github.com/NixOS/nixpkgs/issues/239351 and https://github.com/NixOS/nix/issues/7899.\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7900/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7900/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7897","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7897/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7897/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7897/events","html_url":"https://github.com/NixOS/nix/issues/7897","id":1597710252,"node_id":"I_kwDOADOq6M5fOx-s","number":7897,"title":"error: attribute '' already defined","user":{"login":"davidak","id":91113,"node_id":"MDQ6VXNlcjkxMTEz","avatar_url":"https://avatars.githubusercontent.com/u/91113?v=4","gravatar_id":"","url":"https://api.github.com/users/davidak","html_url":"https://github.com/davidak","followers_url":"https://api.github.com/users/davidak/followers","following_url":"https://api.github.com/users/davidak/following{/other_user}","gists_url":"https://api.github.com/users/davidak/gists{/gist_id}","starred_url":"https://api.github.com/users/davidak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidak/subscriptions","organizations_url":"https://api.github.com/users/davidak/orgs","repos_url":"https://api.github.com/users/davidak/repos","events_url":"https://api.github.com/users/davidak/events{/privacy}","received_events_url":"https://api.github.com/users/davidak/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null},{"id":1426136687,"node_id":"MDU6TGFiZWwxNDI2MTM2Njg3","url":"https://api.github.com/repos/NixOS/nix/labels/error-messages","name":"error-messages","color":"4de2db","default":false,"description":"Confusing messages and better diagnostics"},{"id":2026899164,"node_id":"MDU6TGFiZWwyMDI2ODk5MTY0","url":"https://api.github.com/repos/NixOS/nix/labels/language","name":"language","color":"7ab50c","default":false,"description":"The Nix expression language; parser, interpreter, primops, evaluation, etc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2023-02-24T00:32:00Z","updated_at":"2023-03-22T10:50:05Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"**Describe the bug**\r\n\r\nWhen i combine a module option in the style of\r\n\r\n`nix.settings.max-jobs = 4;`\r\n\r\nwith\r\n\r\n```\r\nnix = {\r\n settings = {\r\n cores = 4;\r\n substituters = [\r\n \"https://cache.nixos.org\"\r\n ];\r\n };\r\n};\r\n```\r\n\r\nit should get automatically combined, since there is no conflict.\r\n\r\nBut instead i get an error!\r\n\r\n**Steps To Reproduce**\r\n\r\n1. Add to `configuration.nix`\r\n\r\n```\r\n nix.settings.max-jobs = 4;\r\n\r\n nix = {\r\n settings = {\r\n cores = 4;\r\n substituters = [\r\n \"https://cache.nixos.org\"\r\n ];\r\n };\r\n };\r\n```\r\n\r\n2. nixos-rebuild switch\r\n\r\n```\r\n[root@gaming:~]# nixos-rebuild switch --keep-failed \r\nerror: attribute 'settings' already defined at /root/nixos/machines/gaming/configuration.nix:281:5\r\n\r\n at /root/nixos/machines/gaming/configuration.nix:278:3:\r\n\r\n 277|\r\n 278| nix.settings.max-jobs = 4;\r\n | ^\r\n 279|\r\n(use '--show-trace' to show detailed location information)\r\nbuilding Nix...\r\nerror: attribute 'settings' already defined at /root/nixos/machines/gaming/configuration.nix:281:5\r\n\r\n at /root/nixos/machines/gaming/configuration.nix:278:3:\r\n\r\n 277|\r\n 278| nix.settings.max-jobs = 4;\r\n | ^\r\n 279|\r\n(use '--show-trace' to show detailed location information)\r\nbuilding the system configuration...\r\nerror: attribute 'settings' already defined at /root/nixos/machines/gaming/configuration.nix:281:5\r\n\r\n at /root/nixos/machines/gaming/configuration.nix:278:3:\r\n\r\n 277|\r\n 278| nix.settings.max-jobs = 4;\r\n | ^\r\n 279|\r\n(use '--show-trace' to show detailed location information)\r\n```\r\n\r\n\r\n**Expected behavior**\r\n\r\nNo error in that case. It is clear what i want. Nix should figure it out!\r\n\r\n**`nix-env --version` output**\r\n\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 6.1.12, NixOS, 22.11 (Raccoon), 22.11.2630.e6d5772f351`\r\n - multi-user?: `yes`\r\n - sandbox: `yes`\r\n - version: `nix-env (Nix) 2.11.1`\r\n - channels(root): `\"home-manager-22.11.tar.gz, nixos-22.11, nixos-hardware, nixos-unstable\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`\r\n\r\n**Additional context**\r\n\r\nAdd any other context about the problem here.\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7897/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7897/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7895","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7895/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7895/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7895/events","html_url":"https://github.com/NixOS/nix/issues/7895","id":1597464149,"node_id":"I_kwDOADOq6M5fN15V","number":7895,"title":"Elide `flake.lock` entries that are already \"locked\" by the url","user":{"login":"RuRo","id":3747318,"node_id":"MDQ6VXNlcjM3NDczMTg=","avatar_url":"https://avatars.githubusercontent.com/u/3747318?v=4","gravatar_id":"","url":"https://api.github.com/users/RuRo","html_url":"https://github.com/RuRo","followers_url":"https://api.github.com/users/RuRo/followers","following_url":"https://api.github.com/users/RuRo/following{/other_user}","gists_url":"https://api.github.com/users/RuRo/gists{/gist_id}","starred_url":"https://api.github.com/users/RuRo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuRo/subscriptions","organizations_url":"https://api.github.com/users/RuRo/orgs","repos_url":"https://api.github.com/users/RuRo/repos","events_url":"https://api.github.com/users/RuRo/events{/privacy}","received_events_url":"https://api.github.com/users/RuRo/received_events","type":"User","site_admin":false},"labels":[{"id":3709171,"node_id":"MDU6TGFiZWwzNzA5MTcx","url":"https://api.github.com/repos/NixOS/nix/labels/feature","name":"feature","color":"0b02e1","default":false,"description":"Feature request or proposal"},{"id":1364639313,"node_id":"MDU6TGFiZWwxMzY0NjM5MzEz","url":"https://api.github.com/repos/NixOS/nix/labels/flakes","name":"flakes","color":"f9a4cb","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2023-02-23T20:08:19Z","updated_at":"2023-03-16T22:11:29Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"### Is your feature request related to a problem? Please describe.\r\n\r\nConsider the following flake (note the `narHash` in the `url`):\r\n\r\n```nix\r\n# uses-foo/flake.nix\r\n{\r\n inputs.foo.url = \"github:nixos/nixpkgs/a395950650818e22403fafaadccb42cb40cb5852?narHash=sha256-kBBoeXhOlTIje7S1lku1k+euf9GcpL8eGZkI66yLeBw=\";\r\n outputs = { foo, ... }: foo;\r\n}\r\n```\r\n\r\nCurrently, this flake will produce a non-empty `flake.lock` file that basically duplicates the information already included in the URL. Committing only `flake.nix` to a git repository and then trying to use it with something like `nix run github:myself/uses-foo#hello` will fail, complain about the missing `flake.lock` and ask the user to use `--no-write-lock-file` or `--no-update-lock-file`.\r\n\r\n---\r\n\r\nA similar thing (but with an extra layer of indirection) happens with the common \"override an empty dependency flake\" pattern. In this pattern, some flake doesn't define one of its inputs (or defines it to point to an empty dummy flake):\r\n```nix\r\n# uses-bar/flake.nix\r\n{\r\n outputs = { bar, ... }: bar;\r\n}\r\n# or\r\n{\r\n inputs.bar.url = \"github:myself/empty-flake\";\r\n outputs = { bar, ... }: bar;\r\n}\r\n```\r\nGiven this, I would expect\r\n```sh\r\nnix run github:myself/uses-bar#hello --override-flake bar 'github:nixos/nixpkgs/a395950650818e22403fafaadccb42cb40cb5852?narHash=sha256-kBBoeXhOlTIje7S1lku1k+euf9GcpL8eGZkI66yLeBw='\r\n```\r\nand (in the first case)\r\n```sh\r\nnix registry add bar 'github:nixos/nixpkgs/a395950650818e22403fafaadccb42cb40cb5852?narHash=sha256-kBBoeXhOlTIje7S1lku1k+euf9GcpL8eGZkI66yLeBw='\r\nnix run github:myself/uses-bar#hello\r\n```\r\nto work without requiring `--no-write-lock-file`. Note, that this is already (kind of) the case, but **only** when `bar` is replaced with the `follows` mechanism from another flake:\r\n```nix\r\n# another/flake.nix\r\n{\r\n inputs = {\r\n this-bar.url = \"github:nixos/nixpkgs\";\r\n uses-bar = {\r\n url = \"github:myself/uses-bar\";\r\n inputs.bar.follows = \"this-bar\";\r\n };\r\n };\r\n outputs = { uses-bar, ... }: uses-bar;\r\n}\r\n```\r\n\r\nSo, AFAIK, we currently have 3 mechanisms for \"replacing\" a flake:\r\n1) `--override-flake`\r\n2) registry\r\n3) `follows`\r\n\r\nand only `follows` works without `--no-write-lock-file`.\r\n\r\n### Describe the solution you'd like\r\n\r\nWhen a flake input `url` is already specific enough, don't add it to the lock file\r\n- \"specific enough\" probably means \"includes a `narHash`\"\r\n (I would personally prefer if just providing a specific `rev` would be enough, but this is up for discussion)\r\n- I would be okay, if this would be a per-input opt-in behaviour (something like `inputs.bar.unlocked = true;`)\r\n- This would include the `url`s derived from `follows`, `--override-flake` and registries\r\n\r\n### Describe alternatives you've considered\r\n\r\nThe only alternatives I see are:\r\n1) Don't use flakes at all. Unfortunately, \"classic\" nix doesn't provide a standardized/idiomatic way to organize nix code.\r\n2) Run everything with `--no-write-lock-file`. Unfortunately, this is either really cumbersome (if you manually add this option to each command) or really error-prone (if you declare an alias that automatically includes `--no-write-lock-file` or something to that effect).\r\n\r\n### Priorities\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7895/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7895/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7894","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7894/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7894/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7894/events","html_url":"https://github.com/NixOS/nix/issues/7894","id":1597460193,"node_id":"I_kwDOADOq6M5fN07h","number":7894,"title":"Issue with installer script `touch: /etc/bashrc: No such file or directory`","user":{"login":"brettmilford","id":19863984,"node_id":"MDQ6VXNlcjE5ODYzOTg0","avatar_url":"https://avatars.githubusercontent.com/u/19863984?v=4","gravatar_id":"","url":"https://api.github.com/users/brettmilford","html_url":"https://github.com/brettmilford","followers_url":"https://api.github.com/users/brettmilford/followers","following_url":"https://api.github.com/users/brettmilford/following{/other_user}","gists_url":"https://api.github.com/users/brettmilford/gists{/gist_id}","starred_url":"https://api.github.com/users/brettmilford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettmilford/subscriptions","organizations_url":"https://api.github.com/users/brettmilford/orgs","repos_url":"https://api.github.com/users/brettmilford/repos","events_url":"https://api.github.com/users/brettmilford/events{/privacy}","received_events_url":"https://api.github.com/users/brettmilford/received_events","type":"User","site_admin":false},"labels":[{"id":387031267,"node_id":"MDU6TGFiZWwzODcwMzEyNjc=","url":"https://api.github.com/repos/NixOS/nix/labels/installer","name":"installer","color":"b60205","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2023-02-23T20:04:38Z","updated_at":"2023-02-23T20:58:05Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"## Platform\r\n\r\n\r\n\r\n- [ ] Linux: \r\n- [X] macOS Ventura 13.1\r\n- [ ] WSL\r\n\r\n## Additional information\r\n\r\nAm attempting to reinstall nix after having removed it including the APFS volume.\r\n\r\nUsing the command:\r\n\r\n```\r\ncurl -L https://nixos.org/nix/install | sh -s -- --daemon\r\n```\r\n\r\nI encounter 2 issues.\r\n\r\n1) the diff command provided errors\r\n2) the script exits after it can't stat /etc/bashrc\r\n\r\n## Output\r\n\r\nOutput
\r\n\r\n```log\r\n\r\n~~> Fixing any leftover Nix volume state\r\n...\r\nNix isn't the only thing in /var/folders/87/pz89xbz16pdc5h_7ldfysrv80000gn/T/tmp.7DEypl98/synthetic.conf.edit,\r\nbut I think I know how to edit it out.\r\nHere's the diff:\r\ndiff: unrecognized option `--unchanged-group-format=\\033[2m%=\\033[0m'\r\nusage: diff [-aBbdilpTtw] [-c | -e | -f | -n | -q | -u] [--ignore-case]\r\n [--no-ignore-case] [--normal] [--strip-trailing-cr] [--tabsize]\r\n [-I pattern] [-F pattern] [-L label] file1 file2\r\n diff [-aBbdilpTtw] [-I pattern] [-L label] [--ignore-case]\r\n [--no-ignore-case] [--normal] [--strip-trailing-cr] [--tabsize]\r\n [-F pattern] -C number file1 file2\r\n diff [-aBbdiltw] [-I pattern] [--ignore-case] [--no-ignore-case]\r\n [--normal] [--strip-trailing-cr] [--tabsize] -D string file1 file2\r\n diff [-aBbdilpTtw] [-I pattern] [-L label] [--ignore-case]\r\n [--no-ignore-case] [--normal] [--tabsize] [--strip-trailing-cr]\r\n [-F pattern] -U number file1 file2\r\n diff [-aBbdilNPprsTtw] [-c | -e | -f | -n | -q | -u] [--ignore-case]\r\n [--no-ignore-case] [--normal] [--tabsize] [-I pattern] [-L label]\r\n [-F pattern] [-S name] [-X file] [-x pattern] dir1 dir2\r\n diff [-aBbditwW] [--expand-tabs] [--ignore-all-blanks]\r\n [--ignore-blank-lines] [--ignore-case] [--minimal]\r\n [--no-ignore-file-name-case] [--strip-trailing-cr]\r\n [--suppress-common-lines] [--tabsize] [--text] [--width]\r\n -y | --side-by-side file1 file2\r\n diff [--help] [--version]\r\n\r\n...\r\n\r\n~~> Setting up shell profiles: /etc/bashrc /etc/profile.d/nix.sh /etc/zshrc /etc/bash.bashrc /etc/zsh/zshrc\r\ntouch: /etc/bashrc: No such file or directory\r\n\r\n---- oh no! ------------------------------------------------------------------\r\n...\r\n\r\n```\r\n\r\n ","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7894/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7894/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7893","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7893/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7893/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7893/events","html_url":"https://github.com/NixOS/nix/issues/7893","id":1597361522,"node_id":"I_kwDOADOq6M5fNc1y","number":7893,"title":"nix 2.13.2 installation incomplete on macOS 11.6.3","user":{"login":"muraii","id":403865,"node_id":"MDQ6VXNlcjQwMzg2NQ==","avatar_url":"https://avatars.githubusercontent.com/u/403865?v=4","gravatar_id":"","url":"https://api.github.com/users/muraii","html_url":"https://github.com/muraii","followers_url":"https://api.github.com/users/muraii/followers","following_url":"https://api.github.com/users/muraii/following{/other_user}","gists_url":"https://api.github.com/users/muraii/gists{/gist_id}","starred_url":"https://api.github.com/users/muraii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muraii/subscriptions","organizations_url":"https://api.github.com/users/muraii/orgs","repos_url":"https://api.github.com/users/muraii/repos","events_url":"https://api.github.com/users/muraii/events{/privacy}","received_events_url":"https://api.github.com/users/muraii/received_events","type":"User","site_admin":false},"labels":[{"id":387031267,"node_id":"MDU6TGFiZWwzODcwMzEyNjc=","url":"https://api.github.com/repos/NixOS/nix/labels/installer","name":"installer","color":"b60205","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2023-02-23T18:47:19Z","updated_at":"2023-02-28T01:15:17Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"## Platform\r\n\r\n\r\n\r\n- [ ] Linux: \r\n- [x] macOS\r\n- [ ] WSL\r\n\r\n## Additional information\r\n\r\nmacOS Big Sur 11.6.3\r\n\r\nI have installed `nix` twice using the `$ sh <(curl -L https://nixos.org/nix/install) --daemon` method. Each attempt completed \"successfully\", according to the script. After the first and before the most-recent, I attempted other installs that required me fully uninstalling following [the instructions for doing so](https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos).\r\n\r\nAfter installing each of those two times, I do not have a `.nix-profile` directory in my `$HOME` directory, nor obviously any subdirectories or other files therein. Neither is my `$PATH` updated to include this directory. Manually executing `/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh` achieves no change. However, I _can_ execute the `nix[ ,-dev, -shell, etc.]` applications by giving the full path, e.g.\r\n\r\n```\r\n/var/nix/profile/default/bin/nix-shell -p neovim\r\n```\r\n\r\n## Output\r\n\r\nI was unable to get the full scrollback but everything prior to the point at which the following console output begins was successful.\r\n\r\nOutput
\r\n\r\n```log\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld20 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld21\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld21 UniqueID 321\r\n\r\nCreating the Nix build user (#21), _nixbld21\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld21 IsHidden 1\r\n\r\nin order to make _nixbld21 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld21 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld21 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld21 RealName Nix build user 21\r\n\r\nin order to give _nixbld21 a useful note\r\n\r\n Note:\tNix build user 21\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld21 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld21 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld21 nixbld\r\n\r\nAdd _nixbld21 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld21 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld22\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld22 UniqueID 322\r\n\r\nCreating the Nix build user (#22), _nixbld22\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld22 IsHidden 1\r\n\r\nin order to make _nixbld22 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld22 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld22 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld22 RealName Nix build user 22\r\n\r\nin order to give _nixbld22 a useful note\r\n\r\n Note:\tNix build user 22\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld22 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld22 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld22 nixbld\r\n\r\nAdd _nixbld22 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld22 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld23\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld23 UniqueID 323\r\n\r\nCreating the Nix build user (#23), _nixbld23\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld23 IsHidden 1\r\n\r\nin order to make _nixbld23 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld23 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld23 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld23 RealName Nix build user 23\r\n\r\nin order to give _nixbld23 a useful note\r\n\r\n Note:\tNix build user 23\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld23 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld23 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld23 nixbld\r\n\r\nAdd _nixbld23 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld23 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld24\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld24 UniqueID 324\r\n\r\nCreating the Nix build user (#24), _nixbld24\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld24 IsHidden 1\r\n\r\nin order to make _nixbld24 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld24 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld24 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld24 RealName Nix build user 24\r\n\r\nin order to give _nixbld24 a useful note\r\n\r\n Note:\tNix build user 24\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld24 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld24 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld24 nixbld\r\n\r\nAdd _nixbld24 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld24 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld25\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld25 UniqueID 325\r\n\r\nCreating the Nix build user (#25), _nixbld25\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld25 IsHidden 1\r\n\r\nin order to make _nixbld25 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld25 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld25 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld25 RealName Nix build user 25\r\n\r\nin order to give _nixbld25 a useful note\r\n\r\n Note:\tNix build user 25\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld25 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld25 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld25 nixbld\r\n\r\nAdd _nixbld25 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld25 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld26\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld26 UniqueID 326\r\n\r\nCreating the Nix build user (#26), _nixbld26\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld26 IsHidden 1\r\n\r\nin order to make _nixbld26 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld26 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld26 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld26 RealName Nix build user 26\r\n\r\nin order to give _nixbld26 a useful note\r\n\r\n Note:\tNix build user 26\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld26 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld26 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld26 nixbld\r\n\r\nAdd _nixbld26 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld26 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld27\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld27 UniqueID 327\r\n\r\nCreating the Nix build user (#27), _nixbld27\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld27 IsHidden 1\r\n\r\nin order to make _nixbld27 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld27 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld27 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld27 RealName Nix build user 27\r\n\r\nin order to give _nixbld27 a useful note\r\n\r\n Note:\tNix build user 27\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld27 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld27 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld27 nixbld\r\n\r\nAdd _nixbld27 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld27 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld28\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld28 UniqueID 328\r\n\r\nCreating the Nix build user (#28), _nixbld28\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld28 IsHidden 1\r\n\r\nin order to make _nixbld28 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld28 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld28 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld28 RealName Nix build user 28\r\n\r\nin order to give _nixbld28 a useful note\r\n\r\n Note:\tNix build user 28\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld28 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld28 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld28 nixbld\r\n\r\nAdd _nixbld28 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld28 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld29\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld29 UniqueID 329\r\n\r\nCreating the Nix build user (#29), _nixbld29\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld29 IsHidden 1\r\n\r\nin order to make _nixbld29 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld29 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld29 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld29 RealName Nix build user 29\r\n\r\nin order to give _nixbld29 a useful note\r\n\r\n Note:\tNix build user 29\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld29 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld29 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld29 nixbld\r\n\r\nAdd _nixbld29 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld29 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld30\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld30 UniqueID 330\r\n\r\nCreating the Nix build user (#30), _nixbld30\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld30 IsHidden 1\r\n\r\nin order to make _nixbld30 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld30 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld30 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld30 RealName Nix build user 30\r\n\r\nin order to give _nixbld30 a useful note\r\n\r\n Note:\tNix build user 30\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld30 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld30 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld30 nixbld\r\n\r\nAdd _nixbld30 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld30 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld31\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld31 UniqueID 331\r\n\r\nCreating the Nix build user (#31), _nixbld31\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld31 IsHidden 1\r\n\r\nin order to make _nixbld31 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld31 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld31 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld31 RealName Nix build user 31\r\n\r\nin order to give _nixbld31 a useful note\r\n\r\n Note:\tNix build user 31\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld31 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld31 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld31 nixbld\r\n\r\nAdd _nixbld31 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld31 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the build user _nixbld32\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . create /Users/_nixbld32 UniqueID 332\r\n\r\nCreating the Nix build user (#32), _nixbld32\r\n\r\n Created:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld32 IsHidden 1\r\n\r\nin order to make _nixbld32 a hidden user\r\n\r\n Hidden:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld32 NFSHomeDirectory /var/empty\r\n\r\nin order to give _nixbld32 a safe home directory\r\n\r\n Home Directory:\t/var/empty\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld32 RealName Nix build user 32\r\n\r\nin order to give _nixbld32 a useful note\r\n\r\n Note:\tNix build user 32\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld32 UserShell /sbin/nologin\r\n\r\nin order to give _nixbld32 a safe shell\r\n\r\n Logins Disabled:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/dseditgroup -o edit -t user -a _nixbld32 nixbld\r\n\r\nAdd _nixbld32 to the nixbld group\r\n\r\n Member of nixbld:\tYes\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/bin/dscl . -create /Users/_nixbld32 PrimaryGroupID 30000\r\n\r\nto let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)\r\n\r\n PrimaryGroupID:\t30000\r\n\r\n~~> Setting up the basic directory structure\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /usr/sbin/chown -R root:nixbld /nix\r\n\r\nto take root ownership of existing Nix store files\r\n\r\nchown: /nix/.Trashes: Operation not permitted\r\nchown: /nix/.Trashes: Operation not permitted\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -dv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/daemon-socket /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user\r\n\r\nto make the basic directory structure of Nix (part 1)\r\n\r\ninstall: mkdir /nix/var\r\ninstall: mkdir /nix/var/log\r\ninstall: mkdir /nix/var/log/nix\r\ninstall: mkdir /nix/var/log/nix/drvs\r\ninstall: mkdir /nix/var/nix\r\ninstall: mkdir /nix/var/nix/db\r\ninstall: mkdir /nix/var/nix/gcroots\r\ninstall: mkdir /nix/var/nix/profiles\r\ninstall: mkdir /nix/var/nix/temproots\r\ninstall: mkdir /nix/var/nix/userpool\r\ninstall: mkdir /nix/var/nix/daemon-socket\r\ninstall: mkdir /nix/var/nix/gcroots/per-user\r\ninstall: mkdir /nix/var/nix/profiles/per-user\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -dv -g nixbld -m 1775 /nix/store\r\n\r\nto make the basic directory structure of Nix (part 2)\r\n\r\ninstall: mkdir /nix/store\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -dv -m 0555 /etc/nix\r\n\r\nto place the default nix daemon configuration (part 1)\r\n\r\ninstall: mkdir /etc/nix\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -m 0664 /var/folders/ck/ghfd8qzd0_qfd6wnts005p2r0000gn/T/tmp.owPTIYaw/.nix-channels /var/root/.nix-channels\r\n\r\nto set up the default system channel (part 1)\r\n\r\n\r\n~~> Installing Nix\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo cp -RPp ./store/077i390izs0a49a2rl491c0laphswsxa-boehm-gc-8.2.2 ./store/1bsjl5incfnszv7scdh4d02sh45vw2w1-bash-5.1-p16 ./store/1l14si31p4aw7c1gwgjy0nq55k38j9nj-nix-2.13.2 ./store/3ayz9iaihbjjg092w6bqbc0q8qd10ila-aws-c-io-0.13.11 ./store/473cwip3bp1b21ryc6qph0b5bmqy8sah-libiconv-50 ./store/496pdqfpsawd945z8fv2pmwxbzj6w2pn-libssh2-1.10.0 ./store/54qb55m0an6n321nfc0mdqg3f0xw9imi-aws-checksums-0.1.13 ./store/63yw07v6bdbf1xa8df858dafhlrjw0mf-aws-c-event-stream-0.2.15 ./store/6fds5r1713zljf9sjgypc5g0gb7hcgkw-aws-c-sdkutils-0.1.7 ./store/6piy8gvmdg0kwr68ay0n5j5a8wa2xydc-apple-framework-Security ./store/79xrxqysrvrpwxnag6a3r7cbh52qqjb6-nss-cacert-3.83 ./store/963m9nyd8irsqa4jjjxi9mymqh1nbzvk-libunistring-1.0 ./store/c33jj94i5jbbi8g052b1disr8vqlsrwp-zstd-1.5.2 ./store/c6w5nc0kjc9h9xkqy7qnsl8lvl21f8kx-aws-c-auth-0.6.21 ./store/c9x2xvim76z82l2nslvzkaq43fbcljwp-nghttp2-1.49.0-lib ./store/d6ff94g4g259fdl5080pn2g22v3z394k-aws-crt-cpp-0.18.9 ./store/dnxv86ynv9fz2wdb08m56l7r6q6w7rpm-libidn2-2.3.2 ./store/drdzf0il1fkv5n9385bhng55y3ss1fx5-aws-c-http-0.6.27 ./store/ds3bgmb92lj32dasa6kzcr29i80gz62f-brotli-1.0.9-lib ./store/g065mgikcmlw1417r3bz4wy7jg26867h-apple-framework-IOKit ./store/g9j1s47g3bkf9y3w1318rihpn8h23x1v-editline-1.17.1 ./store/h1xy7fv5j4my7vrc5jf1nzm9413vfipi-aws-c-compression-0.2.16 ./store/h2n2dfxl9746llqdy1fs0wkqz8rcb1ix-libkrb5-1.20 ./store/h3kjl6ply7vvx6j8jvyh315vybpd69vj-aws-c-s3-0.1.51 ./store/h5cnl1cqaq3nlxxfg6vrdfjblb6hppwf-libxml2-2.10.3 ./store/hh9siq6hhrsk2nlbr59z5nqjsdhmfwjp-libidn2-2.3.2 ./store/hw0pahhla0yl6iln7l6rpbiki2ci6p0c-aws-c-cal-0.5.20 ./store/hzp4534l040cki7i6p9nz7by8kw9qhfv-aws-c-mqtt-0.7.13 ./store/ikc1gndxxy861jwd6mh9ipkyhssxixzr-brotli-1.0.9-lib ./store/ixz132mkf3rqipwn2cldnvl1hn3qhwyd-aws-c-common-0.8.5 ./store/k9pkg1yc715wwihjksxd2ydzhicbijx6-libcxx-11.1.0 ./store/lnijgx434m1c7g8j9iq0vmy19f130w99-libsodium-1.0.18 ./store/lxdpc5hw7bqgn8jq95l282qjxpipikk0-libxml2-2.10.1 ./store/m4p0yk7q8wafzdx5pl0nhgv3blv9pq36-zlib-1.2.13 ./store/mlh211d5j81p93v9mnw8ah3jgi227vi2-libarchive-3.6.1-lib ./store/n0rb8r04s28wjzf7p92agql0ws1r8qvn-Libsystem-1238.60.2 ./store/n0rnrh5nv763l9w34hcaw23mcx5aqw9n-libssh2-1.10.0 ./store/piaaxfmfljjkznw3a146pr5mfrqz422q-curl-7.86.0 ./store/qvvl2gdr4b4aa24v2gan7dm7r2fsnj0a-bzip2-1.0.8 ./store/r3imrw708jm3p28pixxlca0v47c1akxc-libcpuid-0.6.2 ./store/r5pd6x5ljbxnbjsvnxldl1y0sbfg3zjs-curl-7.86.0 ./store/rbq9ixrvnbkn072aid0jljraypkz0434-nlohmann_json-3.11.2 ./store/rcrp4kfp2s46v48hqk3hj09isbrvl150-sqlite-3.39.4 ./store/rp8058411wmb9y7bh5qj5iy9wbhwyskd-libunistring-1.0 ./store/rssxskr23b6f0h6dr05ijv2h9i4fhxh3-libkrb5-1.20 ./store/sxmpb2gw6ihm8xnnadjx5kd0gnn6b8qs-xz-5.2.7 ./store/xd2a4xh8kdwq0j67hzgw720npdw5hzkk-ICU-66108 ./store/xlcsi2mfkp7xnqwplkjiy8h4ndlpr7yc-zstd-1.5.2 ./store/xprjjffj7iri36xdcv778swczy64nw1i-openssl-3.0.7 ./store/yf0lqlgsvkrbf8ax6qvyrn163y45c3im-openssl-3.0.7 ./store/z6a1wy80p7qpbim8m3r3zqp3v8gjyfy2-libcxxabi-11.1.0 ./store/z7lpp0k3wqdb3r04b3kjwgr2z2b2swyj-nghttp2-1.49.0-lib ./store/zc3d7bwlj0diby9rf6cahh7jx6vf1s8p-aws-sdk-cpp-1.9.294 ./store/zvr4wypbgskhhw9cawfn7mmxfa75nh8f-swift-corefoundation-unstable-2018-09-14 /nix/store/\r\n\r\nto copy the basic Nix files to the new store at /nix/store\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo chmod -R ugo-w /nix/store/\r\n\r\nto make the new store non-writable at /nix/store\r\n\r\n Alright! We have our first nix at /nix/store/1l14si31p4aw7c1gwgjy0nq55k38j9nj-nix-2.13.2\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo HOME=/var/root /nix/store/1l14si31p4aw7c1gwgjy0nq55k38j9nj-nix-2.13.2/bin/nix-store --load-db\r\n\r\nto load data for the first time in to the Nix Database\r\n\r\n Just finished getting the nix database ready.\r\n\r\n~~> Setting up shell profiles: /etc/bashrc /etc/profile.d/nix.sh /etc/zshrc /etc/bash.bashrc /etc/zsh/zshrc\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo cp /etc/bashrc /etc/bashrc.backup-before-nix\r\n\r\nto back up your current /etc/bashrc to /etc/bashrc.backup-before-nix\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo tee -a /etc/bashrc\r\n\r\nextend your /etc/bashrc with nix-daemon settings\r\n\r\n\r\n# Nix\r\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\r\n . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\r\nfi\r\n# End Nix\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo cp /etc/zshrc /etc/zshrc.backup-before-nix\r\n\r\nto back up your current /etc/zshrc to /etc/zshrc.backup-before-nix\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo tee -a /etc/zshrc\r\n\r\nextend your /etc/zshrc with nix-daemon settings\r\n\r\n\r\n# Nix\r\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\r\n . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\r\nfi\r\n# End Nix\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup-before-nix\r\n\r\nto back up your current /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo tee -a /etc/bash.bashrc\r\n\r\nextend your /etc/bash.bashrc with nix-daemon settings\r\n\r\n\r\n# Nix\r\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\r\n . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\r\nfi\r\n# End Nix\r\n\r\n\r\n~~> Setting up shell profiles for Fish with with conf.d/nix.fish inside /etc/fish /usr/local/etc/fish /opt/homebrew/etc/fish /opt/local/etc/fish\r\n\r\n~~> Setting up the default profile\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo HOME=/var/root /nix/store/1l14si31p4aw7c1gwgjy0nq55k38j9nj-nix-2.13.2/bin/nix-env -i /nix/store/1l14si31p4aw7c1gwgjy0nq55k38j9nj-nix-2.13.2\r\n\r\nto install a bootstrapping Nix in to the default profile\r\n\r\ninstalling 'nix-2.13.2'\r\nbuilding '/nix/store/kbr12hx48bb2l9sh75kx9xh91b2kvyiy-user-environment.drv'...\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo HOME=/var/root /nix/store/1l14si31p4aw7c1gwgjy0nq55k38j9nj-nix-2.13.2/bin/nix-env -i /nix/store/79xrxqysrvrpwxnag6a3r7cbh52qqjb6-nss-cacert-3.83\r\n\r\nto install a bootstrapping SSL certificate just for Nix in to the default profile\r\n\r\ninstalling 'nss-cacert-3.83'\r\nbuilding '/nix/store/50xiqybwd5yplhkkamgr87scgywzalq9-user-environment.drv'...\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo HOME=/var/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/1l14si31p4aw7c1gwgjy0nq55k38j9nj-nix-2.13.2/bin/nix-channel --update nixpkgs\r\n\r\nto update the default channel in the default profile\r\n\r\nunpacking channels...\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo install -m 0664 /var/folders/ck/ghfd8qzd0_qfd6wnts005p2r0000gn/T/tmp.owPTIYaw/nix.conf /etc/nix/nix.conf\r\n\r\nto place the default nix daemon configuration (part 2)\r\n\r\n\r\n~~> Setting up the nix-daemon LaunchDaemon\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo /bin/cp -f /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist /Library/LaunchDaemons/org.nixos.nix-daemon.plist\r\n\r\nto set up the nix-daemon as a LaunchDaemon\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist\r\n\r\nto load the LaunchDaemon plist for nix-daemon\r\n\r\n\r\n---- sudo execution ------------------------------------------------------------\r\nI am executing:\r\n\r\n $ sudo launchctl kickstart -k system/org.nixos.nix-daemon\r\n\r\nto start the nix-daemon\r\n\r\nAlright! We're done!\r\nTry it! Open a new terminal, and type:\r\n\r\n $ nix-shell -p nix-info --run \"nix-info -m\"\r\n\r\nThank you for using this installer. If you have any feedback or need\r\nhelp, don't hesitate:\r\n\r\nYou can open an issue at\r\nhttps://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md\r\n\r\nOr get in touch with the community: https://nixos.org/community\r\n\r\n---- Reminders -----------------------------------------------------------------\r\n[ 1 ]\r\nNix won't work in active shell sessions until you restart them.\r\n\r\n```\r\n\r\n \r\n\r\nNot only did I restart shell sessions, I rebooted, with no change.\r\n\r\n## Priorities\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7893/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7893/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7892","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7892/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7892/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7892/events","html_url":"https://github.com/NixOS/nix/pull/7892","id":1597205425,"node_id":"PR_kwDOADOq6M5Kn_pw","number":7892,"title":"Support systemd socket activation support more comprensively","user":{"login":"Ericson2314","id":1055245,"node_id":"MDQ6VXNlcjEwNTUyNDU=","avatar_url":"https://avatars.githubusercontent.com/u/1055245?v=4","gravatar_id":"","url":"https://api.github.com/users/Ericson2314","html_url":"https://github.com/Ericson2314","followers_url":"https://api.github.com/users/Ericson2314/followers","following_url":"https://api.github.com/users/Ericson2314/following{/other_user}","gists_url":"https://api.github.com/users/Ericson2314/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericson2314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericson2314/subscriptions","organizations_url":"https://api.github.com/users/Ericson2314/orgs","repos_url":"https://api.github.com/users/Ericson2314/repos","events_url":"https://api.github.com/users/Ericson2314/events{/privacy}","received_events_url":"https://api.github.com/users/Ericson2314/received_events","type":"User","site_admin":false},"labels":[{"id":384707938,"node_id":"MDU6TGFiZWwzODQ3MDc5Mzg=","url":"https://api.github.com/repos/NixOS/nix/labels/documentation","name":"documentation","color":"fef2c0","default":true,"description":null},{"id":478863310,"node_id":"MDU6TGFiZWw0Nzg4NjMzMTA=","url":"https://api.github.com/repos/NixOS/nix/labels/new-cli","name":"new-cli","color":"c2e0c6","default":false,"description":"Relating to the \"nix\" command"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2023-02-23T16:54:20Z","updated_at":"2023-05-10T22:06:57Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"draft":true,"pull_request":{"url":"https://api.github.com/repos/NixOS/nix/pulls/7892","html_url":"https://github.com/NixOS/nix/pull/7892","diff_url":"https://github.com/NixOS/nix/pull/7892.diff","patch_url":"https://github.com/NixOS/nix/pull/7892.patch","merged_at":null},"body":"# Motivation\r\n\r\nWe now support:\r\n\r\n1. Multiple sockets, per the systemd socket activation spec\r\n\r\n2. The sockets not having pid/uid/gid peer info because they might not be Unix domain sockets.\r\n\r\n# Context\r\n\r\nThe changes are by @edolstra, taken from #5265. This is just that PR *without* the TCP parts, which I gathered are the controversial parts. Hopefully this remainder is not so controversial.\r\n\r\n# Checklist for maintainers\r\n\r\n\r\n\r\nMaintainers: tick if completed or explain if not relevant\r\n\r\n - [ ] agreed on idea\r\n - [ ] agreed on implementation strategy\r\n - [ ] tests, as appropriate\r\n - functional tests - `tests/**.sh`\r\n - unit tests - `src/*/tests`\r\n - integration tests - `tests/nixos/*`\r\n - [ ] documentation in the manual\r\n - [ ] code and comments are self-explanatory\r\n - [ ] commit message explains why the change was made\r\n - [ ] new feature or incompatible change: updated release notes\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7892/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7892/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7890","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7890/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7890/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7890/events","html_url":"https://github.com/NixOS/nix/issues/7890","id":1596917794,"node_id":"I_kwDOADOq6M5fLwgi","number":7890,"title":"Out-links for remote stores on shared filesystems","user":{"login":"mupdt","id":25388474,"node_id":"MDQ6VXNlcjI1Mzg4NDc0","avatar_url":"https://avatars.githubusercontent.com/u/25388474?v=4","gravatar_id":"","url":"https://api.github.com/users/mupdt","html_url":"https://github.com/mupdt","followers_url":"https://api.github.com/users/mupdt/followers","following_url":"https://api.github.com/users/mupdt/following{/other_user}","gists_url":"https://api.github.com/users/mupdt/gists{/gist_id}","starred_url":"https://api.github.com/users/mupdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mupdt/subscriptions","organizations_url":"https://api.github.com/users/mupdt/orgs","repos_url":"https://api.github.com/users/mupdt/repos","events_url":"https://api.github.com/users/mupdt/events{/privacy}","received_events_url":"https://api.github.com/users/mupdt/received_events","type":"User","site_admin":false},"labels":[{"id":3709171,"node_id":"MDU6TGFiZWwzNzA5MTcx","url":"https://api.github.com/repos/NixOS/nix/labels/feature","name":"feature","color":"0b02e1","default":false,"description":"Feature request or proposal"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2023-02-23T13:55:33Z","updated_at":"2023-02-27T13:47:54Z","closed_at":null,"author_association":"CONTRIBUTOR","active_lock_reason":null,"body":"**Is your feature request related to a problem? Please describe.**\r\n\r\nWe are using nix's remote store feature in the following setup:\r\n\r\n- Machine A and B share filesystems (via NFS).\r\n- Machine A is where users log in and do their work.\r\n- Machine B is where the nix-daemon runs (this is the only host that can write\r\n to the nix store on the shared filesystem).\r\n\r\nUsers on machine A will be using nix like this:\r\n\r\n```bash\r\nmachine-a % nix build --store ssh-ng://machine-b --out-link result-foo ...\r\n```\r\n\r\nRight now the out link is not created at all (neither on the remote store or\r\nlocally).\r\n\r\n**Describe the solution you'd like**\r\n\r\nThe out link should be created on the remote store if we're sure that the\r\nfilesystems are shared.\r\n\r\nWe are aware that we cannot assume remote stores have a local filesystem\r\navailable. Moreover, we cannot assume the remote store shares its filesystem\r\nwith the client. We therefore propose to add an option to remote stores that\r\ngives a hint to nix that the remote store should be treated as \"shared\" and that\r\nit should create out-links. Something along these lines:\r\n\r\n```bash\r\nmachine-a % nix build --store ssh-ng://machine-b?shared-fs=true --out-link result-foo ...\r\n```\r\n\r\n**Describe alternatives you've considered**\r\n\r\nSome alternatives we considered:\r\n\r\n- lift the concept of out-links all the way to the `Store` class. This means\r\n that all stores, not only `LocalFSStore` would have a way to create out links.\r\n\r\n- a wrapper around our nix tooling that creates out-links out of band (this has\r\n a race condition with the GC unfotunately).\r\n\r\ncc: @thufschmitt @rickynils","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7890/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7890/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7886","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7886/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7886/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7886/events","html_url":"https://github.com/NixOS/nix/issues/7886","id":1596064788,"node_id":"I_kwDOADOq6M5fIgQU","number":7886,"title":"`nix search` shows packages not available on the current platform","user":{"login":"peeley","id":30942198,"node_id":"MDQ6VXNlcjMwOTQyMTk4","avatar_url":"https://avatars.githubusercontent.com/u/30942198?v=4","gravatar_id":"","url":"https://api.github.com/users/peeley","html_url":"https://github.com/peeley","followers_url":"https://api.github.com/users/peeley/followers","following_url":"https://api.github.com/users/peeley/following{/other_user}","gists_url":"https://api.github.com/users/peeley/gists{/gist_id}","starred_url":"https://api.github.com/users/peeley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peeley/subscriptions","organizations_url":"https://api.github.com/users/peeley/orgs","repos_url":"https://api.github.com/users/peeley/repos","events_url":"https://api.github.com/users/peeley/events{/privacy}","received_events_url":"https://api.github.com/users/peeley/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2023-02-23T01:06:41Z","updated_at":"2023-02-23T01:06:41Z","closed_at":null,"author_association":"CONTRIBUTOR","active_lock_reason":null,"body":"**Describe the bug**\r\n\r\nThe `nix search` command shows derivations that are not supported on the current platform, broken, or marked as `badPlatform`. This seems unintuitive; as a user, I would assume that if a package shows as a search result, it's available to use/install. \r\n\r\n**Steps To Reproduce**\r\n\r\nAn example of a package not available on my current platform (`aarch64-darwin`):\r\n\r\n```\r\n$ nix search nixpkgs firefox-bin\r\n* legacyPackages.aarch64-darwin.firefox-bin (110.0)\r\n Mozilla Firefox, free web browser (binary package)\r\n```\r\n\r\nThe `firefox-bin` package is only supported on `*-linux` ([link](https://github.com/NixOS/nixpkgs/blob/a31c3d5e095427c1b99422028dd2d63db0669ed9/pkgs/applications/networking/browsers/firefox-bin/default.nix#L212)).\r\n\r\nAnother example, this time of a package listed as broken on my platform ([link](https://github.com/NixOS/nixpkgs/blob/a31c3d5e095427c1b99422028dd2d63db0669ed9/pkgs/development/compilers/chez/default.nix#L76)):\r\n```\r\n$ nix search nixpkgs chez \r\n* legacyPackages.aarch64-darwin.chez (9.5.8)\r\n A powerful and incredibly fast R6RS Scheme compiler\r\n```\r\n\r\nAnd an example for a package marked as broken on my platform ([link](https://github.com/NixOS/nixpkgs/blob/27d2aa536083e41f2e046213b677e6da2ce9033c/pkgs/tools/misc/gigalixir/default.nix#L51)):\r\n\r\n```\r\n$ nix search nixpkgs gigalixir\r\n* legacyPackages.aarch64-darwin.gigalixir (1.3.0)\r\n Gigalixir Command-Line Interface\r\n```\r\n\r\n**Expected behavior**\r\n\r\nLike I said previously, it's pretty confusing for new users to search for packages, see them in the search results, then find out that the package cannot be installed. I can appreciate that the derivation may be evaluated on a platform without necessarily being built on it, but in terms of UX that seems irrelevant. At the very least, there should be something in the output (for example, \"broken\" in red text next to the package version) to let the user know that a package exists but is not available on their current platform.\r\n\r\n**`nix-env --version` output**\r\n\r\nnix-env (Nix) 2.8.1\r\n\r\n**Additional context**\r\n\r\nI ran into this a long while ago and posted it on the Discourse ([link](https://discourse.nixos.org/t/firefox-unsupported-on-aarch64-darwin/18388)), forgive me if this is now a duplicate or work is being done to address it.\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7886/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7886/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7885","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7885/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7885/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7885/events","html_url":"https://github.com/NixOS/nix/pull/7885","id":1595549168,"node_id":"PR_kwDOADOq6M5KiYdg","number":7885,"title":"Suggestions, typo fixes, etc.","user":{"login":"toraritte","id":1965782,"node_id":"MDQ6VXNlcjE5NjU3ODI=","avatar_url":"https://avatars.githubusercontent.com/u/1965782?v=4","gravatar_id":"","url":"https://api.github.com/users/toraritte","html_url":"https://github.com/toraritte","followers_url":"https://api.github.com/users/toraritte/followers","following_url":"https://api.github.com/users/toraritte/following{/other_user}","gists_url":"https://api.github.com/users/toraritte/gists{/gist_id}","starred_url":"https://api.github.com/users/toraritte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toraritte/subscriptions","organizations_url":"https://api.github.com/users/toraritte/orgs","repos_url":"https://api.github.com/users/toraritte/repos","events_url":"https://api.github.com/users/toraritte/events{/privacy}","received_events_url":"https://api.github.com/users/toraritte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2023-02-22T17:56:21Z","updated_at":"2023-02-23T01:25:39Z","closed_at":null,"author_association":"CONTRIBUTOR","active_lock_reason":null,"draft":true,"pull_request":{"url":"https://api.github.com/repos/NixOS/nix/pulls/7885","html_url":"https://github.com/NixOS/nix/pull/7885","diff_url":"https://github.com/NixOS/nix/pull/7885.diff","patch_url":"https://github.com/NixOS/nix/pull/7885.patch","merged_at":null},"body":"# Motivation\r\nWanted to document the official Nix install script, but then things got out of hand, and started implementing changes that made sense to me. The phrasing is sloppy in most places to keep it simple, but to (hopefully) still convey what I meant. There are `PR_COMMENT` blockquotes scattered around in several documents to give some rationale, point out my ignorance, etc.\r\n\r\n@fricklerhandwerk Would you take a look if you see anything useful in here? Thank you and no rush.\r\n\r\n**edit**: Please note that entire purpose of this \"PR\" was to submit a couple of ideas for review, and pursue the ones deemed worthy in PRs with scopes as narrow as possible.\r\n\r\n# Context\r\nAt the top of my head:\r\n+ https://discourse.nixos.org/t/how-to-build-the-nix-manual-not-the-nix-man-pages/20508/\r\n+ https://discourse.nixos.org/t/how-to-run-the-nix-installer-silently-from-a-shell-script/25633\r\n+ https://discourse.nixos.org/t/what-are-the-specific-differences-between-and-perhaps-use-cases-for-single-user-and-multi-user-nix-installations/25671\r\n\r\nSome of the more invasive changes:\r\n+ Move sections \"Contributing\" and \"Quick Start\" to Introduction. (The former was very well hidden at the very bottom, and I feel that it should be higher up somewhere.)\r\n+ Add a draft man page for the install script in Utilities (because it is a very central utility).\r\n+ Add Uninstallation section right after Installation. (There are fair number of questions online in this topic that I think would warrant grouping them into a main topic, instead of having them scattered around.)\r\n\r\nI also feel that single-user & multi-user modes should be expounded in their own sections for subsequent installation sections to be able to build on them - or at least use them as a crutch if needed. (That is, I understand that they are just arbitrary terms describing two modes implemented by the install script, and if one builds NIx from scratch, they could devise their own \"mode of operation\"; still, a comparison for newcomers would help newcomers to build on something.)\r\n\r\n# Checklist for maintainers\r\n\r\n\r\n\r\nMaintainers: tick if completed or explain if not relevant\r\n\r\n - [ ] agreed on idea\r\n - [ ] agreed on implementation strategy\r\n - [ ] tests, as appropriate\r\n - functional tests - `tests/**.sh`\r\n - unit tests - `src/*/tests`\r\n - integration tests - `tests/nixos/*`\r\n - [ ] documentation in the manual\r\n - [ ] code and comments are self-explanatory\r\n - [ ] commit message explains why the change was made\r\n - [ ] new feature or incompatible change: updated release notes\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7885/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7885/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7882","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7882/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7882/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7882/events","html_url":"https://github.com/NixOS/nix/issues/7882","id":1594880465,"node_id":"I_kwDOADOq6M5fD_HR","number":7882,"title":"narinfo unconditionally re-uploaded to http cache even when it already exists","user":{"login":"yorickvP","id":647076,"node_id":"MDQ6VXNlcjY0NzA3Ng==","avatar_url":"https://avatars.githubusercontent.com/u/647076?v=4","gravatar_id":"","url":"https://api.github.com/users/yorickvP","html_url":"https://github.com/yorickvP","followers_url":"https://api.github.com/users/yorickvP/followers","following_url":"https://api.github.com/users/yorickvP/following{/other_user}","gists_url":"https://api.github.com/users/yorickvP/gists{/gist_id}","starred_url":"https://api.github.com/users/yorickvP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yorickvP/subscriptions","organizations_url":"https://api.github.com/users/yorickvP/orgs","repos_url":"https://api.github.com/users/yorickvP/repos","events_url":"https://api.github.com/users/yorickvP/events{/privacy}","received_events_url":"https://api.github.com/users/yorickvP/received_events","type":"User","site_admin":false},"labels":[{"id":3709158,"node_id":"MDU6TGFiZWwzNzA5MTU4","url":"https://api.github.com/repos/NixOS/nix/labels/bug","name":"bug","color":"e10c02","default":true,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2023-02-22T10:49:06Z","updated_at":"2023-02-24T11:48:11Z","closed_at":null,"author_association":"CONTRIBUTOR","active_lock_reason":null,"body":"**Describe the bug**\r\n\r\n```\r\npost-build-hook: warning: error: unable to upload 'http://localhost:3000/h3ixmy787vaw42warbaxpgfkk4f2w7zi.narinfo': HTTP error 502\r\npost-build-hook: \r\npost-build-hook: response body:\r\npost-build-hook: \r\npost-build-hook: googleapi: Error 403: Object 'contoso-nix-cache-github/h3ixmy787vaw42warbaxpgfkk4f2w7zi.narinfo' is subject to bucket's retention policy and cannot be deleted, overwritten or archived until 2023-05-23T09:33:25.436367-07:00, retentionPolicyNotMet; retrying in 326 ms\r\n```\r\n\r\nWhen running multiple nix copies to a http store simultaneously, there's an issue causing the same narinfo to be uploaded twice. When this fails (because of retention policies), it's retried ad infinitum.\r\n\r\nWe applied [this patch](https://gist.github.com/yorickvP/66a5f6b9f6b29d767b5d85d0d6b59a52) to work around this issue.\r\n\r\n**Expected behavior**\r\n\r\nNix should stop trying to upload .narinfo's if they already exist and are equal.\r\n\r\n**`nix-env --version` output**\r\nnix 2.11.1\r\n\r\n**Additional context**\r\n\r\ncc @sir4ur0n\r\n\r\nAdd any other context about the problem here.\r\n\r\n**Priorities**\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7882/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7882/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7880","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7880/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7880/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7880/events","html_url":"https://github.com/NixOS/nix/issues/7880","id":1594353016,"node_id":"I_kwDOADOq6M5fB-V4","number":7880,"title":"Issue with Installing Nix After MacOS Update (Nix stopped working)","user":{"login":"YashPotdar","id":29903349,"node_id":"MDQ6VXNlcjI5OTAzMzQ5","avatar_url":"https://avatars.githubusercontent.com/u/29903349?v=4","gravatar_id":"","url":"https://api.github.com/users/YashPotdar","html_url":"https://github.com/YashPotdar","followers_url":"https://api.github.com/users/YashPotdar/followers","following_url":"https://api.github.com/users/YashPotdar/following{/other_user}","gists_url":"https://api.github.com/users/YashPotdar/gists{/gist_id}","starred_url":"https://api.github.com/users/YashPotdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashPotdar/subscriptions","organizations_url":"https://api.github.com/users/YashPotdar/orgs","repos_url":"https://api.github.com/users/YashPotdar/repos","events_url":"https://api.github.com/users/YashPotdar/events{/privacy}","received_events_url":"https://api.github.com/users/YashPotdar/received_events","type":"User","site_admin":false},"labels":[{"id":387031267,"node_id":"MDU6TGFiZWwzODcwMzEyNjc=","url":"https://api.github.com/repos/NixOS/nix/labels/installer","name":"installer","color":"b60205","default":false,"description":""},{"id":411903252,"node_id":"MDU6TGFiZWw0MTE5MDMyNTI=","url":"https://api.github.com/repos/NixOS/nix/labels/macos","name":"macos","color":"d4c5f9","default":false,"description":"Nix on macOS, aka OS X, aka darwin"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2023-02-22T02:25:28Z","updated_at":"2023-10-06T10:49:32Z","closed_at":null,"author_association":"NONE","active_lock_reason":null,"body":"## Platform\r\n\r\n\r\n\r\n- [ ] Linux: \r\n- [x] macOS\r\n- [ ] WSL\r\n\r\n## Additional information\r\n\r\nAfter updating MacOS software to Ventura 13.2, I cannot run `nix develop` anymore. I can a `nix: command not found` error. I tried running this `sh <(curl -L https://nixos.org/nix/install) --daemon` but run into an error:\r\n\r\nI made sure to follow these steps below:\r\n1. Back up (copy) /etc/bashrc and /etc/bashrc.backup-before-nix\r\n to another location, just in case.\r\n\r\n2. Ensure /etc/bashrc.backup-before-nix does not have anything\r\n Nix-related in it. If it does, something is probably quite\r\n wrong. Please open an issue or get in touch immediately.\r\n\r\n\r\n\r\n## Output\r\n\r\nOutput
\r\n\r\n```log\r\n\r\nmv /etc/bashrc.backup-before-nix /etc/bashrc\r\noverride r--r--r-- root/wheel for /etc/bashrc? (y/n [n]) y\r\nmv: rename /etc/bashrc.backup-before-nix to /etc/bashrc: Permission denied\r\n\r\n```\r\n\r\n \r\n\r\n## Priorities\r\n\r\nAdd :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7880/reactions","total_count":3,"+1":3,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7880/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7876","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7876/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7876/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7876/events","html_url":"https://github.com/NixOS/nix/issues/7876","id":1593826955,"node_id":"I_kwDOADOq6M5e_96L","number":7876,"title":"Reorganize this repo","user":{"login":"Ericson2314","id":1055245,"node_id":"MDQ6VXNlcjEwNTUyNDU=","avatar_url":"https://avatars.githubusercontent.com/u/1055245?v=4","gravatar_id":"","url":"https://api.github.com/users/Ericson2314","html_url":"https://github.com/Ericson2314","followers_url":"https://api.github.com/users/Ericson2314/followers","following_url":"https://api.github.com/users/Ericson2314/following{/other_user}","gists_url":"https://api.github.com/users/Ericson2314/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericson2314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericson2314/subscriptions","organizations_url":"https://api.github.com/users/Ericson2314/orgs","repos_url":"https://api.github.com/users/Ericson2314/repos","events_url":"https://api.github.com/users/Ericson2314/events{/privacy}","received_events_url":"https://api.github.com/users/Ericson2314/received_events","type":"User","site_admin":false},"labels":[{"id":823546271,"node_id":"MDU6TGFiZWw4MjM1NDYyNzE=","url":"https://api.github.com/repos/NixOS/nix/labels/build-problem","name":"build-problem","color":"006b75","default":false,"description":"Nix fails to compile or test; also improvements to build process"},{"id":4323811842,"node_id":"LA_kwDOADOq6M8AAAABAbgiAg","url":"https://api.github.com/repos/NixOS/nix/labels/contributor-experience","name":"contributor-experience","color":"c2e0c6","default":false,"description":"Developer experience for Nix contributors"},{"id":5149625275,"node_id":"LA_kwDOADOq6M8AAAABMvELuw","url":"https://api.github.com/repos/NixOS/nix/labels/idea%20approved","name":"idea approved","color":"00FF55","default":false,"description":"The given proposal has been discussed and approved by the Nix team. An implementation is welcome."}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2023-02-21T17:08:32Z","updated_at":"2024-01-21T21:25:23Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"body":"# Desiderata\r\n\r\nHere are a number of goals we would like to have, where the current organization falls shorts\r\n\r\n## Low latency Nix builds\r\n\r\nFor CI and local development a like, it is nice if repeated Nix builds avoid duplicated work. This means having fine-grained derivations with well-scoped inputs and outputs.\r\n\r\nUltimately, we would need Recursive Nix or RFC 92 to really nail this, but in the meantime we can at least focus on some lower hanging fruit: filtering sources just to the files relevant for the task at hand.\r\n\r\nOne way to do this is with `builtins.filterSource` and friends, but keeping such predicates up to date is a bit frustrating. A more maintainable way is to leverage the repo directory structure so that separate build tasks correspond to separate directories.\r\n\r\nThis also makes it easy to understand the project structure at a glance.\r\n\r\n## Cross-project incremental development.\r\n\r\nFor proper builds, dependencies should always be built in separate derivations, for the reason of low latency defined above. But for the foreseeable future, developers wanted the best developer experience will still be doing impure builds in a development shell environment.\r\n\r\nIf the developer is just working on one project, giving that shell environment the same dependencies as the regular build is fine, but quite often the developer wants to work on multiple projects at once. Then, having the dependencies be pre-built in the development shell is very frustrating for two reasons:\r\n - The developer must re-enter the shell every time they modify the dependency\r\n - The developer must way for a from-scratch rebuild of the dependency when they renter the development shell.\r\n\r\nThis is an issue both within this repo and between repos:\r\n - When trying to fix the Perl bindings (in tree) after a modification of Nix, one needs to wait for a from-scratch Nix rebuiild.\r\n - The Python bindings from https://github.com/NixOS/nix/pull/7735 (in tree), have a best-effort mitigation of this, but it is not easy to write today.\r\n - Developing Hydra (out of tree) also requires a from-scratch Nix rebuild. This makes solving issue https://github.com/NixOS/hydra/issues/1164, and is probably a reason why some of this duplication arose in the first place --- it is just too painful making small changes to Nix and easier to duplicate functionality in Hydra.\r\n\r\nThe relationship to repo organization is that in order to maintainably support both the development and release builds workflows, they must be as similar as possible. The means, the location of source files in the repo need to roughly correspond to the location of installed files in dependencies' outputs.\r\n\r\n - Headers should \"look the same\" both installed (with `-I /nix/store/...` flags) or in tree (with `-I this/repo/...) flags.\r\n - No `-include config.h` should be done, because downstream projects should need to include headers not replicate such CLI flags.\r\n\r\n# The status quo\r\n\r\nToday, we have a directory structure like this:\r\n```\r\nflake.nix\r\nperl/\r\n├── lib\r\n│ └── Nix\r\n│ ├── Store.pm\r\n│ ├── Store.xs\r\n│ ...\r\n...\r\n\r\npython/\r\n├── ...\r\n...\r\n\r\nMakefile\r\n\r\nsrc\r\n├── libcmd\r\n│ ├── command.cc\r\n│ ├── command.hh\r\n│ ...\r\n├── libexpr\r\n│ ├── attr-path.cc\r\n│ ├── attr-path.hh\r\n│ ├── tests/\r\n│ │ ├── value/context.hh\r\n│ │ ├── value/context.cc\r\n│ │ ...\r\n│ ...\r\n...\r\n```\r\n\r\nHere are the problems with this:\r\n\r\n- Even though we have separate top-level projects, Nix itself is splatted on the top level\r\n - The flakes.nix and perl binding sources thus pollute the build of Nix itself --- changing *just* the perl bindigns *also* invalidates the dev shell (so the developer must be careful not to leave the dev shell by mistake, or they will have to wait to reenter it!)\r\n\r\n- The header are directly in the root of `-I` search path entries, but they will be installed in `$dev/include/nix/` -- a new `nix` subdir! We have a non-standard pkg-config hacking around this, but this is not a good solution.\r\n\r\n- The flake.nix is too big and hard to read.\r\n\r\n- The test headers are mix in with the library headers, and we have to manually be careful not to install them.\r\n\r\n# A plan\r\n\r\nI propose we instead adopt something like this:\r\n```\r\nperl/\r\n├── default.nix\r\n├── lib\r\n│ └── Nix\r\n│ ├── Store.pm\r\n│ ├── Store.xs\r\n│ ...\r\n...\r\n\r\npython/\r\n├── default.nix\r\n├── ...\r\n...\r\n\r\nnix\r\n├── default.nix\r\n├── Makefile\r\n├── libcmd\r\n│ ├── include/nix/cmd\r\n│ │ ├── command.hh\r\n│ │ ...\r\n│ └── src\r\n│ ├── command.cc\r\n│ ...\r\n├── libexpr\r\n│ ├── include/nix/expr\r\n│ │ ├── attr-path.hh\r\n│ │ ...\r\n│ └── src\r\n│ ├── attr-path.cc\r\n│ ...\r\n├── libexpr-tests\r\n│ ├── include/nix/expr/tests/\r\n│ │ ├── value/context.hh\r\n│ │ │\r\n│ │ ...\r\n│ └── src\r\n│ ├── value/context.hh\r\n│ ...\r\n...\r\n\r\nintegration-tests\r\n├── authorization.nix\r\n...\r\n```\r\n\r\nNote these changes:\r\n\r\n - Each project (Nix itself, Perl bindings, Python bindings) is confined to its own subdir, clarifying the project structure and avoiding input leakage for lower latency builds\r\n\r\n - Each project gets its own `default.nix`, which will be `callPackage`d in the top-level `flake.nix`. This makes clear what dependencies of each \"unit\" are, and those files could someday be mirrored one-for-one in Nixpkgs easing maintenance. The top-level `flake.nix` is much shorter and clearer.\r\n - We might someday use sub-flakes for this, but in my opinion they are not yet mature enough.\r\n\r\n - The extra `src` dir is removed, we can go straight to talking about each library\r\n - This helps cut down on the extra subdir cost we are paying.\r\n - Instead we have a `src` dir per library\r\n\r\n - The *public* headers are put in their own directory, and given the same prefix they would be installed under.\r\n - N.B. Putting the library name in the prefix (`nix/` vs `nix/expr`, for example, is an orthogonal choice we can decide on separately.\r\n - If we ever had *private* headers (perhaps useful if we want to ever move towards a partially stable C++ interface), those would also go in the `src` directory, indicating they are not installed.\r\n\r\n - The test libraries are completely separated out\r\n - There is no risk of mixing up test srcs and headers for library proper srcs and headers\r\n\r\n - The integration tests (NixOS VM tests) are separated out, so that changes to them don't need to cause a `nix` rebuild\r\n\r\n## Bonus: Meson support\r\n\r\nOne of Meson's best features is [Subprojects](https://mesonbuild.com/Subprojects.html). This is designed to agglomerate a bunch of separate packages into one single incremental build with minimal hassle. Dependencies (or rather virtual things to depend-upon) can be declared in individual meson projects, and then when the projects are combined together needed-dependencies can be satisfied with these instead of externally (e.g. with `pkg-config).\r\n\r\nIf we switched to using Meson across the board (Nix itself, Python bindings, Perl bindings, Hydra), we would have a `meson.build` in each sub-directory, and then a top-level `meson.build` in the root of this repo adding all the others as sub-projects. The top-level `meson.build` would just be used for development.\r\n\r\nIf a developer wants to develop Nix and hydra at the same time, they would unpack/symlink hydra to a new subdir along-side the others and then add it with `subproject(...)` in the top-level `meson.build`. Then incremental builds of Nix and Hydra together would just work --- no further manual steps needed!\r\n\r\n# Drawbacks\r\n\r\n- A lot of files will move around\r\n - But this is a one time cost. Rebasing the PR that *moves* the files is hard, so we should decide on this issue first and then quickly implement whatever we decide on right after, but rebasing *other* PRs over that PR is easy.\r\n\r\n- File paths are longer and more redundant\r\n - True. Cutting out the `src` directory helps a bit, but we still have things like `nix/libstore/include/nix/store/foo-bar.hh`. But it doesn't seem that much can be done out of this without failing to meet our desiderata.\r\n\r\n- Files are further apart. `foo.cc` is no longer right next to `foo.hh`\r\n - True. But again, it doesn't seem that much can be done out of this without failing to meet our desiderata.","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7876/reactions","total_count":12,"+1":8,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":4,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7876/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7873","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7873/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7873/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7873/events","html_url":"https://github.com/NixOS/nix/pull/7873","id":1592572875,"node_id":"PR_kwDOADOq6M5KYeoj","number":7873,"title":"non-function type error, with argument details.","user":{"login":"bburdette","id":157330,"node_id":"MDQ6VXNlcjE1NzMzMA==","avatar_url":"https://avatars.githubusercontent.com/u/157330?v=4","gravatar_id":"","url":"https://api.github.com/users/bburdette","html_url":"https://github.com/bburdette","followers_url":"https://api.github.com/users/bburdette/followers","following_url":"https://api.github.com/users/bburdette/following{/other_user}","gists_url":"https://api.github.com/users/bburdette/gists{/gist_id}","starred_url":"https://api.github.com/users/bburdette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bburdette/subscriptions","organizations_url":"https://api.github.com/users/bburdette/orgs","repos_url":"https://api.github.com/users/bburdette/repos","events_url":"https://api.github.com/users/bburdette/events{/privacy}","received_events_url":"https://api.github.com/users/bburdette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2023-02-20T23:53:53Z","updated_at":"2023-02-21T03:20:17Z","closed_at":null,"author_association":"CONTRIBUTOR","active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/NixOS/nix/pulls/7873","html_url":"https://github.com/NixOS/nix/pull/7873","diff_url":"https://github.com/NixOS/nix/pull/7873.diff","patch_url":"https://github.com/NixOS/nix/pull/7873.patch","merged_at":null},"body":"# Motivation\r\nAdd some extra context when someone mistakenly uses something that isn't a function where a function should be.\r\n\r\n# Context\r\nIssue #7405 provides an example where part of the nix expression is evaluated and assumed to be a function, since arguments follow. In this case, which part of the expression evaluates to the function is arguably unclear to the user.\r\n\r\nCurrent error:\r\n```\r\nnix-repl> {a = 3;}.a or throw \"what\" \r\nerror: attempt to call something which is not a function but an integer\r\n\r\n at «string»:1:1:\r\n\r\n 1| {a = 3;}.a or throw \"what\"\r\n | ^\r\n```\r\n\r\nError with extra context:\r\n```\r\nnix-repl> {a = 3;}.a or throw \"what\"\r\nerror: attempt to call something which is not a function but an integer: 3\r\n function arguments:\r\n a string: \"what\"\r\n\r\n at «string»:1:1:\r\n\r\n 1| {a = 3;}.a or throw \"what\"\r\n | ^\r\n```\r\n\r\nTo hopefully make cases like this more clear, I print the type and value of the non-function, followed by the type and value of its arguments. Because printing sets and lists can result in enormous walls of text, I only print the expr types for sets and lists.\r\n\r\n```\r\nnix-repl> np = import {}\r\n\r\nnix-repl> np\r\n{ AAAAAASomeThingsFailToEvaluate = «error: error:\r\n … while calling the 'throw' builtin\r\n\r\n at /nix/store/ ^Cerror: interrupted by the user\r\n«derivation\r\nnix-repl> {a = 3;}.a or throw \"what\" 12 21 34 np\r\nerror: attempt to call something which is not a function but an integer: 3\r\n function arguments:\r\n a string: \"what\"\r\n an integer: 12\r\n an integer: 21\r\n an integer: 34\r\n a set: \r\n\r\n at «string»:1:1:\r\n\r\n 1| {a = 3;}.a or throw \"what\" 12 21 34 np\r\n | ^\r\n```\r\n\r\n# Implementation notes\r\n\r\nBecause I wanted to make an error message with a dynamic number of arguments, I needed to create a new constructor for ErrorBuilder that takes a hintformat. Then I added a function to create this hintformat. Since allocating hintformats on the stack is discouraged, the build function and etc use a unique_ptr. \r\n\r\n# Checklist for maintainers\r\n\r\n\r\n\r\nMaintainers: tick if completed or explain if not relevant\r\n\r\n - [ ] agreed on idea\r\n - [ ] agreed on implementation strategy\r\n - [ ] tests, as appropriate\r\n - functional tests - `tests/**.sh`\r\n - unit tests - `src/*/tests`\r\n - integration tests - `tests/nixos/*`\r\n - [ ] documentation in the manual\r\n - [ ] code and comments are self-explanatory\r\n - [ ] commit message explains why the change was made\r\n - [ ] new feature or incompatible change: updated release notes\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7873/reactions","total_count":1,"+1":1,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7873/timeline","performed_via_github_app":null,"state_reason":null},{"url":"https://api.github.com/repos/NixOS/nix/issues/7871","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/7871/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/7871/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/7871/events","html_url":"https://github.com/NixOS/nix/pull/7871","id":1592487451,"node_id":"PR_kwDOADOq6M5KYMcD","number":7871,"title":"Restore NIX_PATH taking precedence over nix-path","user":{"login":"edolstra","id":1148549,"node_id":"MDQ6VXNlcjExNDg1NDk=","avatar_url":"https://avatars.githubusercontent.com/u/1148549?v=4","gravatar_id":"","url":"https://api.github.com/users/edolstra","html_url":"https://github.com/edolstra","followers_url":"https://api.github.com/users/edolstra/followers","following_url":"https://api.github.com/users/edolstra/following{/other_user}","gists_url":"https://api.github.com/users/edolstra/gists{/gist_id}","starred_url":"https://api.github.com/users/edolstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edolstra/subscriptions","organizations_url":"https://api.github.com/users/edolstra/orgs","repos_url":"https://api.github.com/users/edolstra/repos","events_url":"https://api.github.com/users/edolstra/events{/privacy}","received_events_url":"https://api.github.com/users/edolstra/received_events","type":"User","site_admin":false},"labels":[{"id":823903415,"node_id":"MDU6TGFiZWw4MjM5MDM0MTU=","url":"https://api.github.com/repos/NixOS/nix/labels/regression","name":"regression","color":"5319e7","default":false,"description":"Something doesn't work anymore"},{"id":4515249920,"node_id":"LA_kwDOADOq6M8AAAABDSE_AA","url":"https://api.github.com/repos/NixOS/nix/labels/with-tests","name":"with-tests","color":"006B75","default":false,"description":"Issues related to testing. PRs with tests have some priority"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2023-02-20T21:55:48Z","updated_at":"2023-09-13T00:06:41Z","closed_at":null,"author_association":"MEMBER","active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/NixOS/nix/pulls/7871","html_url":"https://github.com/NixOS/nix/pull/7871","diff_url":"https://github.com/NixOS/nix/pull/7871.diff","patch_url":"https://github.com/NixOS/nix/pull/7871.patch","merged_at":null},"body":"# Motivation\r\n\r\nThis restores the Nix <= 2.13 behaviour. Environment variables (which are dynamic) should take precedence over configuration file settings (which are static).\r\n\r\n- Fixes #7857.\r\n- Fixes #8902 (duplicate?)\r\n- Fixes #8784\r\n\r\nNote however that it does make `NIX_PATH` take precedence over the `--nix-path` and `--extra-nix-path` command line options, due to the way settings are implemented. There really is no correct behaviour here, e.g. should `--extra-nix-path` override `NIX_PATH` or the configuration file? If `--extra-nix-path` is used in restricted eval mode, should it extend the default value (which includes the channels)?\r\n\r\nBottom line: it's best to stop using restricted eval and/or `NIX_PATH`.\r\n\r\n# Context\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n# Checklist for maintainers\r\n\r\n\r\n\r\nMaintainers: tick if completed or explain if not relevant\r\n\r\n - [ ] agreed on idea\r\n - [ ] agreed on implementation strategy\r\n - [ ] tests, as appropriate\r\n - functional tests - `tests/**.sh`\r\n - unit tests - `src/*/tests`\r\n - integration tests - `tests/nixos/*`\r\n - [ ] documentation in the manual\r\n - [ ] code and comments are self-explanatory\r\n - [ ] commit message explains why the change was made\r\n - [ ] new feature or incompatible change: updated release notes\r\n","reactions":{"url":"https://api.github.com/repos/NixOS/nix/issues/7871/reactions","total_count":4,"+1":4,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/NixOS/nix/issues/7871/timeline","performed_via_github_app":null,"state_reason":null}]