# Question about \`nix-bin\` package in Ubuntu

**URL:** https://discourse.nixos.org/t/question-about-nix-bin-package-in-ubuntu/41806
**Category:** Help
**Created:** [March 19, 2024, 8:09am UTC](https://discourse.nixos.org/t/question-about-nix-bin-package-in-ubuntu/41806 "2024-03-19T08:09:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kuwii](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kuwii/32/5325_2.png) [@kuwii](https://discourse.nixos.org/u/kuwii)
#### Post date: [March 19, 2024, 8:09am UTC](https://discourse.nixos.org/t/question-about-nix-bin-package-in-ubuntu/41806/1 "2024-03-19T08:09:55Z")

</div>

I’ve only tried single-user installation before in Ubuntu. Recently I just found that Ubuntu’s APT package manager has a package called [nix-bin](https://packages.ubuntu.com/jammy/nix-bin).

I’ve tried the package. Seems that it can do some steps of multi-user installation, including installing nix binaries, creating `/nix`, and setting up systemd services. However, the APT installation seems to only do a very basic setup. No channel is added, and `/nix/var/nix/profiles/per-user` is empty.

So just want to know if someone has context about that package about:

- Is it a recommend way to install nix to Ubuntu?
- After `apt install nix-bin`, what’s the following steps to generate profiles?

---

<div class="post-metadata">

### Author: ![fricklerhandwerk](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fricklerhandwerk/32/2029_2.png) [@fricklerhandwerk](https://discourse.nixos.org/u/fricklerhandwerk)
#### Post date: [March 19, 2024, 10:05am UTC](https://discourse.nixos.org/t/question-about-nix-bin-package-in-ubuntu/41806/2 "2024-03-19T10:05:28Z")

</div>

The only actively maintained ways to install Nix standalone I’m aware of are the official installer and the DetSys installer. There exist packages for Arch and Ubuntu, and possibly more, but we’ve seen issue reports and it appears like they’re rather out of date.

Would be great if it weren’t that way, as that would ease onboarding a lot. Help appreciated!

---

<div class="post-metadata">

### Author: ![symphorien](https://discourse.nixos.org/user_avatar/discourse.nixos.org/symphorien/32/546_2.png) [@symphorien](https://discourse.nixos.org/u/symphorien)
#### Post date: [March 19, 2024, 6:31pm UTC](https://discourse.nixos.org/t/question-about-nix-bin-package-in-ubuntu/41806/3 "2024-03-19T18:31:19Z")

</div>

For ubuntu-related differences, have a look at /usr/share/doc/nix-bin/README.Debian  
This file explains that by default only users in a specific group are allowed to use nix, for example.  
If you don’t have channels (please check both as your user and as root) then you can add one yourself

```auto
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs

```

* * *

I’m a bit sad that the first answer to this kind of request is “you don’t use the upstream-blessed installation method, but a downstream package, it’s not supported bye”. As a distribution, NixOS is a prime offender in “weird downstream packaging”, and I am very grateful when upstream is supportive of our “special needs”. I would like us to return the favor by being supportive of people using downstream packaging.

That said it _is_ true that the nix version in ubuntu is not very recent.

---

<div class="post-metadata">

### Author: ![fricklerhandwerk](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fricklerhandwerk/32/2029_2.png) [@fricklerhandwerk](https://discourse.nixos.org/u/fricklerhandwerk)
#### Post date: [March 19, 2024, 7:34pm UTC](https://discourse.nixos.org/t/question-about-nix-bin-package-in-ubuntu/41806/4 "2024-03-19T19:34:01Z")

</div>

> [@symphorien](#):
>
> I’m a bit sad that the first answer to this kind of request is “you don’t use the upstream-blessed installation method, but a downstream package, it’s not supported bye”.

I very much share that frustration, being a user of Nix myself. My answer is merely factual: no one put in the work, so that’s the situation. And everyone I know is fully booked solving other problems picked from the bottomless pit of problems. And we can’t make people do things.

I derive part of my income from using money to incentivize people to do particular Nix things, and currently it’s so little we have available in comparison to the volunteer work and donated developer time, that it barely makes a dent in the big picture.
