Open ramboman opened 7 months ago
Here is what I did afterward:
{ pkgs ? import <nixpkgs> { system = builtins.currentSystem; }
, stdenv ? pkgs.stdenv
, fetchurl ? pkgs.fetchurl
}:
stdenv.mkDerivation {
name = "agave-nerdfont";
src = fetchurl {
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Agave.tar.xz";
sha256 = "1xxylrjb0zbq3kj14fx5d3lpb7abl0br6mkj961i391qyqlx01y3";
};
}
$ nix build -f agave-nerdfont.nix
error: builder for '/nix/store/r2rfikrlq9ja5mzjvsdz9d924avq8xv7-Agave.tar.xz.drv' failed with exit code 1;
last 14 log lines:
> error checking the existence of https://tarballs.nixos.org/sha256/1xxylrjb0zbq3kj14fx5d3lpb7abl0br6mkj961i391qyqlx01y3:
> curl: (6) Could not resolve host: tarballs.nixos.org
>
> trying https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Agave.tar.xz
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com
> Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left.
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com
> Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left.
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com
> Warning: Problem : timeout. Will retry in 4 seconds. 1 retries left.
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com
> error: cannot download Agave.tar.xz from any mirror
For full logs, run 'nix log /nix/store/r2rfikrlq9ja5mzjvsdz9d924avq8xv7-Agave.tar.xz.drv'.
error: 1 dependencies of derivation '/nix/store/izjrkc9sgfl5xgl27ns3fjy5777fl7dv-agave-nerdfont.drv' failed to build
$ curl -LO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Agave.tar.xz
$ tar --list -f Agave.tar.xz
AgaveNerdFont-Bold.ttf
AgaveNerdFont-Regular.ttf
AgaveNerdFontMono-Bold.ttf
AgaveNerdFontMono-Regular.ttf
AgaveNerdFontPropo-Bold.ttf
AgaveNerdFontPropo-Regular.ttf
LICENSE
README.md
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
It looks like Nixpkgs's fetchers only honors the lower case version of these variables: https://github.com/NixOS/nixpkgs/blob/cc5b30542b0202032f2ad5792cfa3955446fdfdf/lib/fetchers.nix#L10
Can you try with these in the systemd override to confirm?
Yes, if I replace the uppercase proxy variables in the systemd override.conf with their lowercase counterpart, fetchurl
works again.
Here is what I did next:
nix
code:
$ grep -r _proxy
scripts/install-systemd-multi-user.sh:create_systemd_proxy_env() {
scripts/install-systemd-multi-user.sh: vars="http_proxy https_proxy ftp_proxy no_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY NO_PROXY"
scripts/install-systemd-multi-user.sh:handle_network_proxy() {
scripts/install-systemd-multi-user.sh: PROXY_ENV_STRING=$(create_systemd_proxy_env)
scripts/install-systemd-multi-user.sh: handle_network_proxy
doc/manual/src/language/advanced-attributes.md: impureEnvVars = [ "http_proxy" "https_proxy" ... ];
doc/manual/src/language/advanced-attributes.md: in the environment variables `http_proxy` and friends.
doc/manual/src/release-notes/rl-0.10.md: environment variables `http_proxy`, `https_proxy`, `ftp_proxy` or
doc/manual/src/release-notes/rl-0.10.md: `all_proxy` appropriately. Functions such as `fetchurl` in Nixpkgs
doc/manual/src/installation/env-variables.md:environment variables: `http_proxy`, `https_proxy`, `ftp_proxy`,
doc/manual/src/installation/env-variables.md:`no_proxy`, `HTTP_PROXY`, `HTTPS_PROXY`, `FTP_PROXY`, `NO_PROXY`.
tests/nixos/nss-preload.nix: "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"
src/libexpr/fetchurl.nix: "http_proxy" "https_proxy" "ftp_proxy" "all_proxy" "no_proxy"
src/nix-build/nix-build.cc: "http_proxy", "https_proxy", "ftp_proxy", "all_proxy", "no_proxy"
src/libstore/globals.hh: This option is useful for, e.g., setting `https_proxy` for
src/libstore/unix/build/local-derivation-goal.cc: `http_proxy' to be easily passed to downloaders like
src/nix/main.cc: "http_proxy",
src/nix/main.cc: "https_proxy",
src/nix/main.cc: "ftp_proxy",
nix
code:
$ grep -r _PROXY
scripts/install-systemd-multi-user.sh: vars="http_proxy https_proxy ftp_proxy no_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY NO_PROXY"
doc/manual/src/installation/env-variables.md:`no_proxy`, `HTTP_PROXY`, `HTTPS_PROXY`, `FTP_PROXY`, `NO_PROXY`.
src/nix/main.cc: "HTTP_PROXY",
src/nix/main.cc: "HTTPS_PROXY",
src/nix/main.cc: "FTP_PROXY"
Different sections of the code honor different set of proxy variables.
That's true. Feel free to send a patch to unify all that (also in https://github.com/NixOS/nixpkgs/blob/cc5b30542b0202032f2ad5792cfa3955446fdfdf/lib/fetchers.nix#L10 as linked above as it is the one causing you troubles)
I just don't know anything much about these variables. E.g. are there usually upper case and lower case pairs? That seems odd to me
From my understanding, nix
uses cURL
and its library to perform downloads. cURL
relies on these variables to perform downloads through a proxy. According to the cURL manual, in the Environment
section, both lowercase and uppercase proxy variables are supported (except for http).
Regarding environment variables in general, they seems to be defined in uppercase:
$ env
<most if not all variables in uppercase>
Describe the bug
nix
fails to install packages that require building from behind a proxy. It cannot download sources from behind a proxy.Steps To Reproduce
127.0.0.1:8082
~/tmp/install_nix.sh
export FTP_PROXY=127.0.0.1:8082 export HTTP_PROXY=$FTP_PROXY export HTTPS_PROXY=$FTP_PROXY
curl --location https://nixos.org/nix/install | sh -s -- "$@"
$ sudo ~/tmp/install_nix.sh --daemon --yes % 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 4052 100 4052 0 0 3633 0 0:00:01 0:00:01 --:--:-- 12353 downloading Nix 2.21.1 binary tarball for x86_64-linux from 'https://releases.nixos.org/nix/nix-2.21.1/nix-2.21.1-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.WwE8IXm9zC'... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 21.8M 100 21.8M 0 0 2348k 0 0:00:09 0:00:09 --:--:-- 2842k Note: a multi-user installation is possible. See https://nixos.org/manual/nix/stable/installation/installing-binary.html#multi-user-installation Switching to the Multi-user 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:
Make sure your computer doesn't already have Nix. If it does, I will show you instructions on how to clean up your old install.
Show you what I am going to install and where. Then I will ask if you are ready to continue.
Create the system users (uids [30001..30032]) and groups (gid 30000) that the Nix daemon uses to run builds. To create system users in a different range, exit and run this tool again with NIX_FIRST_BUILD_UID set.
Perform the basic installation of the Nix files daemon.
Configure your shell to import special Nix Profile files, so you can use Nix.
Start the Nix daemon.
Would you like to see a more detailed list of what I will do? No TTY, assuming you would say yes :)
I will:
Ready to continue? No TTY, assuming you would say yes :)
~~> Checking for artifacts of previous installs Before I try to install, I'll check for signs Nix already is or has been installed on this system.
---- Nix config report --------------------------------------------------------- Temp Dir: /tmp/tmp.c6IZIDVwtz 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? No TTY, assuming you would say yes :)
~~> Setting up the build group nixbld
---- sudo execution ------------------------------------------------------------ I am executing:
Create the Nix build group, nixbld
~~> Setting up the build user nixbld1
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld1
useradd warning: nixbld1's uid 30001 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 1 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld2
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld2
useradd warning: nixbld2's uid 30002 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 2 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld3
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld3
useradd warning: nixbld3's uid 30003 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 3 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld4
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld4
useradd warning: nixbld4's uid 30004 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 4 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld5
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld5
useradd warning: nixbld5's uid 30005 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 5 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld6
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld6
useradd warning: nixbld6's uid 30006 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 6 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld7
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld7
useradd warning: nixbld7's uid 30007 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 7 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld8
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld8
useradd warning: nixbld8's uid 30008 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 8 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld9
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld9
useradd warning: nixbld9's uid 30009 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 9 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld10
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld10
useradd warning: nixbld10's uid 30010 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 10 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld11
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld11
useradd warning: nixbld11's uid 30011 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 11 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld12
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld12
useradd warning: nixbld12's uid 30012 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 12 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld13
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld13
useradd warning: nixbld13's uid 30013 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 13 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld14
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld14
useradd warning: nixbld14's uid 30014 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 14 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld15
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld15
useradd warning: nixbld15's uid 30015 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 15 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld16
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld16
useradd warning: nixbld16's uid 30016 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 16 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld17
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld17
useradd warning: nixbld17's uid 30017 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 17 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld18
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld18
useradd warning: nixbld18's uid 30018 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 18 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld19
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld19
useradd warning: nixbld19's uid 30019 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 19 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld20
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld20
useradd warning: nixbld20's uid 30020 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 20 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld21
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld21
useradd warning: nixbld21's uid 30021 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 21 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld22
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld22
useradd warning: nixbld22's uid 30022 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 22 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld23
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld23
useradd warning: nixbld23's uid 30023 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 23 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld24
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld24
useradd warning: nixbld24's uid 30024 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 24 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld25
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld25
useradd warning: nixbld25's uid 30025 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 25 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld26
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld26
useradd warning: nixbld26's uid 30026 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 26 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld27
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld27
useradd warning: nixbld27's uid 30027 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 27 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld28
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld28
useradd warning: nixbld28's uid 30028 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 28 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld29
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld29
useradd warning: nixbld29's uid 30029 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 29 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld30
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld30
useradd warning: nixbld30's uid 30030 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 30 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld31
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld31
useradd warning: nixbld31's uid 30031 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 31 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the build user nixbld32
---- sudo execution ------------------------------------------------------------ I am executing:
Creating the Nix build user, nixbld32
useradd warning: nixbld32's uid 30032 is greater than SYS_UID_MAX 999 Created: Yes Hidden: Yes Home Directory: /var/empty Note: Nix build user 32 Logins Disabled: Yes Member of nixbld: Yes PrimaryGroupID: 30000
~~> Setting up the basic directory structure
---- sudo execution ------------------------------------------------------------ I am executing:
to make the basic directory structure of Nix (part 1)
install: creating directory '/nix' install: creating directory '/nix/var' install: creating directory '/nix/var/log' install: creating directory '/nix/var/log/nix' install: creating directory '/nix/var/log/nix/drvs' install: creating directory '/nix/var/nix' install: creating directory '/nix/var/nix/db' install: creating directory '/nix/var/nix/gcroots' install: creating directory '/nix/var/nix/profiles' install: creating directory '/nix/var/nix/temproots' install: creating directory '/nix/var/nix/userpool' install: creating directory '/nix/var/nix/daemon-socket' install: creating directory '/nix/var/nix/gcroots/per-user' install: creating directory '/nix/var/nix/profiles/per-user'
---- sudo execution ------------------------------------------------------------ I am executing:
to make the basic directory structure of Nix (part 2)
install: creating directory '/nix/store'
---- sudo execution ------------------------------------------------------------ I am executing:
to place the default nix daemon configuration (part 1)
install: creating directory '/etc/nix'
---- sudo execution ------------------------------------------------------------ I am executing:
to set up the default system channel (part 1)
~~> Installing Nix
---- sudo execution ------------------------------------------------------------ I am executing:
to copy the basic Nix files to the new store at /nix/store
---- sudo execution ------------------------------------------------------------ I am executing:
to make the new store non-writable at /nix/store
---- sudo execution ------------------------------------------------------------ I am executing:
to load data for the first time in to the Nix Database
~~> Setting up shell profiles: /etc/bashrc /etc/profile.d/nix.sh /etc/zshrc /etc/bash.bashrc /etc/zsh/zshrc
---- sudo execution ------------------------------------------------------------ I am executing:
to create a stub /etc/bashrc which will be updated
---- sudo execution ------------------------------------------------------------ I am executing:
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:
to create a stub /etc/profile.d/nix.sh which will be updated
---- sudo execution ------------------------------------------------------------ I am executing:
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:
to create a stub /etc/zshrc which will be updated
---- sudo execution ------------------------------------------------------------ I am executing:
extend your /etc/zshrc 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:
to back up your current /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix
---- sudo execution ------------------------------------------------------------ I am executing:
extend your /etc/bash.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
~~> Setting up shell profiles for Fish with conf.d/nix.fish inside /etc/fish /usr/local/etc/fish /opt/homebrew/etc/fish /opt/local/etc/fish
~~> Setting up the default profile
---- sudo execution ------------------------------------------------------------ I am executing:
to install a bootstrapping Nix in to the default profile
installing 'nix-2.21.1' building '/nix/store/jm9275iviwzms49p7f47bb19974g5wd0-user-environment.drv'...
---- sudo execution ------------------------------------------------------------ I am executing:
to install a bootstrapping SSL certificate just for Nix in to the default profile
installing 'nss-cacert-3.95' building '/nix/store/811k3kdw4q839271f554mh0s9g3wdki2-user-environment.drv'...
---- sudo execution ------------------------------------------------------------ I am executing:
to update the default channel in the default profile
unpacking 1 channels...
---- sudo execution ------------------------------------------------------------ I am executing:
to place the default nix daemon configuration (part 2)
~~> Setting up the nix-daemon systemd service
---- sudo execution ------------------------------------------------------------ I am executing:
to create the nix-daemon tmpfiles config
---- sudo execution ------------------------------------------------------------ I am executing:
to run systemd-tmpfiles once to pick that path up
---- sudo execution ------------------------------------------------------------ I am executing:
to set up the nix-daemon service
Created symlink /etc/systemd/system/nix-daemon.service → /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.service.
---- sudo execution ------------------------------------------------------------ I am executing:
to set up the nix-daemon socket service
Created symlink /etc/systemd/system/nix-daemon.socket → /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.socket. Created symlink /etc/systemd/system/sockets.target.wants/nix-daemon.socket → /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.socket.
---- Configuring proxy for the nix-daemon service ------------------------------
---- sudo execution ------------------------------------------------------------ I am executing:
create directory for systemd unit override
---- sudo execution ------------------------------------------------------------ I am executing:
create systemd unit override
[Service] Environment=HTTP_PROXY=127.0.0.1:8082 Environment=HTTPS_PROXY=127.0.0.1:8082 Environment=FTP_PROXY=127.0.0.1:8082
---- sudo execution ------------------------------------------------------------ I am executing:
to load the systemd unit for nix-daemon
---- sudo execution ------------------------------------------------------------ I am executing:
to start the nix-daemon.socket
---- sudo execution ------------------------------------------------------------ I am executing:
to start the nix-daemon.service
Alright! We're done! Try it! Open a new terminal, and type:
$ nix-shell -p nix-info --run "nix-info -m"
Thank you for using this installer. If you have any feedback or need help, don't hesitate:
You can open an issue at https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md
Or get in touch with the community: https://nixos.org/community
---- Reminders ----------------------------------------------------------------- [ 1 ] Nix won't work in active shell sessions until you restart them.
experimental-features = nix-command flakes build-users-group = nixbld
user@nix-debug:~$ export FTP_PROXY=127.0.0.1:8082 user@nix-debug:~$ export HTTP_PROXY=127.0.0.1:8082 user@nix-debug:~$ export HTTPS_PROXY=127.0.0.1:8082 user@nix-debug:~$ nix profile install nixpkgs#nerdfonts error: builder for '/nix/store/vznf9nf4myfq2wx01crg7a4r1lqcfspj-0xProto.tar.xz.drv' failed with exit code 1; last 14 log lines:
trying https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.0/0xProto.tar.xz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left. ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left. ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com Warning: Problem : timeout. Will retry in 4 seconds. 1 retries left. ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: github.com error: cannot download 0xProto.tar.xz from any mirror user@nix-debug:~$
user@nix-debug:~$ nix profile install nixpkgs#hello user@nix-debug:~$ hello Hello, world! user@nix-debug:~$ which hello /home/user/.nix-profile/bin/hello user@nix-debug:~$ curl -L 'https://tarballs.nixos.org/sha256/0vprpl49708c6hl99bc590gk26clzqvsc512kgg5377hl4jr1nyn' > tarball % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3 100 3 0 0 3 0 0:00:01 --:--:-- 0:00:01 3 user@nix-debug:~$ cat tarball 404user@nix-debug:~$ curl -LO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.0/0xProto.tar.xz.xz % 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 1681k 100 1681k 0 0 616k 0 0:00:02 0:00:02 --:--:-- 2268k user@nix-debug:~$ tar --list -f 0xProto.tar.xz 0xProtoNerdFont-Regular.ttf 0xProtoNerdFontMono-Regular.ttf 0xProtoNerdFontPropo-Regular.ttf LICENSE README.md user@nix-debug:~$
user@nix-debug:~$ cat /etc/systemd/system/nix-daemon.service.d/override.conf [Service] Environment=HTTP_PROXY=127.0.0.1:8082 Environment=HTTPS_PROXY=127.0.0.1:8082 Environment=FTP_PROXY=127.0.0.1:8082 user@nix-debug:~$