Skip to content

Instantly share code, notes, and snippets.

@KoviRobi
Created April 2, 2020 15:29
Show Gist options
  • Save KoviRobi/628c1cfec2768d9fef2c1b160063a0b2 to your computer and use it in GitHub Desktop.
Save KoviRobi/628c1cfec2768d9fef2c1b160063a0b2 to your computer and use it in GitHub Desktop.
downloading Nix 2.3.3 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.3.3/nix-2.3.3-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.4U1lpLFhC6'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 86 100 86 0 0 725 0 --:--:-- --:--:-- --:--:-- 728
100 16.4M 100 16.4M 0 0 87.7M 0 --:--:-- --:--:-- --:--:-- 87.7M
Note: a multi-user installation is possible. See https://nixos.org/nix/manual/#sect-multi-user-installation
Switching to the Daemon-based Installer
Welcome to the Multi-User Nix Installation

This installation tool will set up your computer with the Nix package
manager. This will happen in a few stages:
1. Make sure your computer doesn't already have Nix. If it does, I
will show you instructions on how to clean up your old one.
2. Show you what we are going to install and where. Then we will ask
if you are ready to continue.
3. Create the system users and groups that the Nix daemon uses to run
builds.
4. Perform the basic installation of the Nix files daemon.
5. Configure your shell to import special Nix Profile files, so you
can use Nix.
6. Start the Nix daemon.
Would you like to see a more detailed list of what we will do?
[y/n]
---- let's talk about sudo -----------------------------------------------------
This script is going to call sudo a lot. Every time we do, it'll
output exactly what it'll do, and why.
Just like this:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo echo
to demonstrate how our sudo prompts look
This might look scary, but everything can be undone by running just a
few commands. We used to ask you to confirm each time sudo ran, but it
was too many times. Instead, I'll just ask you this one time:
Can we use sudo?
[y/n]
Yay! Thanks! Let's get going!

---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo test -e /root/.nix-defexpr
making sure that /root/.nix-defexpr doesn't exist
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo test -e /root/.nix-channels
making sure that /root/.nix-channels doesn't exist
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo test -e /root/.nix-profile
making sure that /root/.nix-profile doesn't exist
---- Nix config report ---------------------------------------------------------
 Temp Dir: /tmp/tmp.xkbrfHOYBx
 Nix Root: /nix
 Build Users: 32
 Build Group ID: 30000
Build Group Name: nixbld
build users:
 Username: UID
 nixbld1: 30001
 nixbld2: 30002
 nixbld3: 30003
 nixbld4: 30004
 nixbld5: 30005
 nixbld6: 30006
 nixbld7: 30007
 nixbld8: 30008
 nixbld9: 30009
 nixbld10: 30010
 nixbld11: 30011
 nixbld12: 30012
 nixbld13: 30013
 nixbld14: 30014
 nixbld15: 30015
 nixbld16: 30016
 nixbld17: 30017
 nixbld18: 30018
 nixbld19: 30019
 nixbld20: 30020
 nixbld21: 30021
 nixbld22: 30022
 nixbld23: 30023
 nixbld24: 30024
 nixbld25: 30025
 nixbld26: 30026
 nixbld27: 30027
 nixbld28: 30028
 nixbld29: 30029
 nixbld30: 30030
 nixbld31: 30031
 nixbld32: 30032
Ready to continue?
[y/n]
~~> Setting up the build group nixbld
 Exists: Yes
~~> Setting up the build user nixbld1
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 1 nixbld1
in order to give nixbld1 a useful comment
usermod: no changes
 Note: Nix build user 1
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld2
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 2 nixbld2
in order to give nixbld2 a useful comment
usermod: no changes
 Note: Nix build user 2
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld3
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 3 nixbld3
in order to give nixbld3 a useful comment
usermod: no changes
 Note: Nix build user 3
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld4
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 4 nixbld4
in order to give nixbld4 a useful comment
usermod: no changes
 Note: Nix build user 4
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld5
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 5 nixbld5
in order to give nixbld5 a useful comment
usermod: no changes
 Note: Nix build user 5
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld6
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 6 nixbld6
in order to give nixbld6 a useful comment
usermod: no changes
 Note: Nix build user 6
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld7
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 7 nixbld7
in order to give nixbld7 a useful comment
usermod: no changes
 Note: Nix build user 7
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld8
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 8 nixbld8
in order to give nixbld8 a useful comment
usermod: no changes
 Note: Nix build user 8
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld9
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 9 nixbld9
in order to give nixbld9 a useful comment
usermod: no changes
 Note: Nix build user 9
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld10
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 10 nixbld10
in order to give nixbld10 a useful comment
usermod: no changes
 Note: Nix build user 10
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld11
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 11 nixbld11
in order to give nixbld11 a useful comment
usermod: no changes
 Note: Nix build user 11
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld12
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 12 nixbld12
in order to give nixbld12 a useful comment
usermod: no changes
 Note: Nix build user 12
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld13
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 13 nixbld13
in order to give nixbld13 a useful comment
usermod: no changes
 Note: Nix build user 13
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld14
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 14 nixbld14
in order to give nixbld14 a useful comment
usermod: no changes
 Note: Nix build user 14
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld15
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 15 nixbld15
in order to give nixbld15 a useful comment
usermod: no changes
 Note: Nix build user 15
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld16
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 16 nixbld16
in order to give nixbld16 a useful comment
usermod: no changes
 Note: Nix build user 16
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld17
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 17 nixbld17
in order to give nixbld17 a useful comment
usermod: no changes
 Note: Nix build user 17
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld18
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 18 nixbld18
in order to give nixbld18 a useful comment
usermod: no changes
 Note: Nix build user 18
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld19
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 19 nixbld19
in order to give nixbld19 a useful comment
usermod: no changes
 Note: Nix build user 19
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld20
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 20 nixbld20
in order to give nixbld20 a useful comment
usermod: no changes
 Note: Nix build user 20
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld21
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 21 nixbld21
in order to give nixbld21 a useful comment
usermod: no changes
 Note: Nix build user 21
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld22
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 22 nixbld22
in order to give nixbld22 a useful comment
usermod: no changes
 Note: Nix build user 22
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld23
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 23 nixbld23
in order to give nixbld23 a useful comment
usermod: no changes
 Note: Nix build user 23
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld24
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 24 nixbld24
in order to give nixbld24 a useful comment
usermod: no changes
 Note: Nix build user 24
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld25
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 25 nixbld25
in order to give nixbld25 a useful comment
usermod: no changes
 Note: Nix build user 25
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld26
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 26 nixbld26
in order to give nixbld26 a useful comment
usermod: no changes
 Note: Nix build user 26
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld27
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 27 nixbld27
in order to give nixbld27 a useful comment
usermod: no changes
 Note: Nix build user 27
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld28
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 28 nixbld28
in order to give nixbld28 a useful comment
usermod: no changes
 Note: Nix build user 28
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld29
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 29 nixbld29
in order to give nixbld29 a useful comment
usermod: no changes
 Note: Nix build user 29
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld30
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 30 nixbld30
in order to give nixbld30 a useful comment
usermod: no changes
 Note: Nix build user 30
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld31
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 31 nixbld31
in order to give nixbld31 a useful comment
usermod: no changes
 Note: Nix build user 31
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
~~> Setting up the build user nixbld32
 Exists: Yes
 Hidden: Yes
 Home Directory: /var/empty
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo usermod --comment Nix build user 32 nixbld32
in order to give nixbld32 a useful comment
usermod: no changes
 Note: Nix build user 32
 Logins Disabled: Yes
 Member of nixbld: Yes
 PrimaryGroupID: 30000
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo mkdir -pv -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/gcroots/per-user /nix/var/nix/profiles/per-user
to make the basic directory structure of Nix (part 1)
mkdir: created directory ‘/nix’
mkdir: created directory ‘/nix/var’
mkdir: created directory ‘/nix/var/log’
mkdir: created directory ‘/nix/var/log/nix’
mkdir: created directory ‘/nix/var/log/nix/drvs’
mkdir: created directory ‘/nix/var/nix’
mkdir: created directory ‘/nix/var/nix/db’
mkdir: created directory ‘/nix/var/nix/gcroots’
mkdir: created directory ‘/nix/var/nix/profiles’
mkdir: created directory ‘/nix/var/nix/temproots’
mkdir: created directory ‘/nix/var/nix/userpool’
mkdir: created directory ‘/nix/var/nix/gcroots/per-user’
mkdir: created directory ‘/nix/var/nix/profiles/per-user’
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo mkdir -pv -m 1775 /nix/store
to make the basic directory structure of Nix (part 2)
mkdir: created directory ‘/nix/store’
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo chgrp nixbld /nix/store
to make the basic directory structure of Nix (part 3)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo mkdir -pv -m 0555 /etc/nix
to place the default nix daemon configuration (part 1)
mkdir: created directory ‘/etc/nix’
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo install -m 0664 /tmp/tmp.xkbrfHOYBx/.nix-channels /root/.nix-channels
to set up the default system channel (part 1)
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo rsync -rlpt ./store/02aq3pykvpwhgns18f9dp6m807i7yxqg-keyutils-1.6.1-lib ./store/03s8kyhbfmsls4vb6m4w6rhblm6scz2f-editline-1.17.0 ./store/1h87p7z1m6zcmx62wr5d2wjr6m9yrsr4-curl-7.68.0 ./store/3cl3k3paa6fm23r9v3yv8zawjn7gdy22-bzip2-1.0.6.0.1 ./store/3qgg8xzdyfd7nql0qlkb1xpnrfz4k1s2-coreutils-8.31 ./store/3yc40x5adwgc2wmzn7gd9kjhcwbq45in-gcc-9.2.0-lib ./store/4ib6spndkf8acwzp42xjygwbliq6j3h9-gzip-1.10 ./store/6566wp1fvzbdy242czysqyg8l7wxn9im-nss-cacert-3.49.2 ./store/7vvnqd0wbn47kdlp1s51i7ajc9fsiamj-libkrb5-1.17 ./store/828g2nqfgivscv79xykkmgjk0znll08l-bash-4.4-p23 ./store/86p38lq2y9a57j1yi8zkfy9xp6avsgny-brotli-1.0.7-lib ./store/8xv25wa1q2lwi6dvkljjk5ylkvag4ma4-nghttp2-1.40.0-lib ./store/aiy49qhngvn3krlhacbxgrxmnq9hq548-zlib-1.2.11 ./store/c0b76xh2za9r9r4b0g3iv4x2lkw1zzcn-aws-sdk-cpp-1.7.90 ./store/cry6r9wiijkfwz5fjyfbw75grrn9c9sd-boehm-gc-8.0.4-dev ./store/ddmmzn4ggz1f66lwxjy64n89864yj9w9-nix-2.3.3 ./store/gkbbm7f115gx0nmj12l7nx3ksmz6sw14-aws-c-event-stream-0.1.1 ./store/h7hndqlfc2779q7pbcjr1gax8gc4xica-xz-5.2.4 ./store/hjng28vbd73qq9iz9j8r397x19aa8fp9-libidn2-2.3.0 ./store/hzdn6id43w1xxp30xr3h1q2xqkxbw29n-sqlite-3.30.1 ./store/i7z20d9jnjjbz0ynlm2dfg672h4zjnvd-xz-5.2.4-bin ./store/jc8v38m7scsa31fwpp408p2n6b37m37v-aws-checksums-0.1.5 ./store/jm3dnw9d4jp5l7x9qy9axf444fz7k6gw-boehm-gc-8.0.4 ./store/kx5vsysj0d0wa40j2w7fmaddf00wlhlq-acl-2.2.53 ./store/lbpdypcp87f19zc4z29crcnfxfg17qgg-libseccomp-2.4.2-lib ./store/lpafwjjy5q5xni9b2r66gj4zyfbkaifv-aws-c-common-0.3.11 ./store/m39n9phm3c0ximcsw1ngpjjw92iywcyw-openssl-1.1.1d ./store/mbmwmq05laqrpnagg4ybb96slzg3yil4-attr-2.4.48 ./store/mxaxvp33wg9sim8qh2kkw041v492bvxj-libunistring-0.9.10 ./store/sc7lh1dhvd7fg28d7dxwsqzfcinnr6j5-glibc-2.30 ./store/x49zm66i7v2mcj71ppd459hmhllydapc-gnutar-1.32 ./store/x9iaylq3f8r5y4z7bbgi76dnabh370bi-bzip2-1.0.6.0.1-bin ./store/xddd6aw9fcca0rilnpc0mkf78ax23h3v-libssh2-1.9.0 ./store/ya2xrk06bjj52s5jcv5yyx5hjnxjjjak-libsodium-1.0.18 ./store/zvilp79l6g6a0ngk9pj5vbk3j7jzkkda-busybox-1.31.1-x86_64-unknown-linux-musl /nix/store/
to copy the basic Nix files to the new store at /nix/store
Alright! We have our first nix at /nix/store/ddmmzn4ggz1f66lwxjy64n89864yj9w9-nix-2.3.3
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /nix/store/ddmmzn4ggz1f66lwxjy64n89864yj9w9-nix-2.3.3/bin/nix-store --load-db
to load data for the first time in to the Nix Database
Just finished getting the nix database ready.
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo touch /etc/profile.d/nix.sh
create a stub /etc/profile.d/nix.sh which will be updated
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo cp /etc/bashrc /etc/bashrc.backup-before-nix
to back up your current /etc/bashrc to /etc/bashrc.backup-before-nix
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo tee -a /etc/bashrc
extend your /etc/bashrc with nix-daemon settings
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo cp /etc/profile.d/nix.sh /etc/profile.d/nix.sh.backup-before-nix
to back up your current /etc/profile.d/nix.sh to /etc/profile.d/nix.sh.backup-before-nix
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo tee -a /etc/profile.d/nix.sh
extend your /etc/profile.d/nix.sh with nix-daemon settings
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo HOME=/root /nix/store/ddmmzn4ggz1f66lwxjy64n89864yj9w9-nix-2.3.3/bin/nix-env -i /nix/store/ddmmzn4ggz1f66lwxjy64n89864yj9w9-nix-2.3.3
to installing a bootstrapping Nix in to the default Profile
installing 'nix-2.3.3'
error: writing to file: Operation not permitted
---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.
:(

We'd love to help if you need it.
If you can, open an issue at https://github.com/nixos/nix/issues
Or feel free to contact the team,
- on IRC #nixos on irc.freenode.net
- on twitter @nixos_org

@KoviRobi
Copy link
Author

KoviRobi commented Apr 2, 2020

This is without the fix of

grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)"
reboot
echo 31211 > /proc/sys/user/max_user_namespaces # 1000 is a random number, I guess anything >0 should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment