aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2019-06-17Merge pull request #2746 from bjornfor/install-multi-user-defaultsEelco Dolstra
install-multi-user: reduce max-jobs from 32 to 1
2019-05-29Replace `type` with `command -v` in install scriptJohannes Climacus
In POSIX sh, `type` is undefined. cf. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html#tag_20_22_04
2019-05-15Don’t set NIX_REMOTE=daemon in daemon profileMatthew Bauer
This is now autodetected. There is no need to put it in the profile.
2019-05-15Sync NIX_PROFILES between single-user and multi-user modesMatthew Bauer
When we are in single user mode, we still want to have access to profiles. This way things in Nixpkgs that rely on them getting set accurately are done in both cases. The point where I hit this is with using aspell which looks in NIX_PROFILES: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/aspell/default.nix Before this patch, NIX_PROFILES was never set in single user mode! This corrects that.
2019-05-15nix-profile: Add all channels to $NIX_PATHEelco Dolstra
Fixes #2709.
2019-05-15Fix shellcheck errorEelco Dolstra
https://hydra.nixos.org/build/93359951
2019-05-08Merge pull request #2594 from LnL7/darwin-10.12.6Graham Christensen
installer: update macOS version check to 10.12.2
2019-05-01Merge pull request #2679 from bjornfor/offline-installEelco Dolstra
install script: don't abort when "nix-channel --update" fails
2019-03-27install-multi-user: remove unneeded settings from nix.confBjørn Forsman
Hardcoding the "max-jobs" and "cores" settings in nix.conf at install time, to the same value as Nix' built-in default, makes little sense to me.
2019-03-27install-multi-user: reduce max-jobs from 32 to 1Bjørn Forsman
Having max-jobs = 32 ($NIX_USER_COUNT is hardcoded to that value) may severely overload the machine. The nix.conf(5) manual page says max-jobs defaults to 1, so let's use that value. NOTE: Both max-jobs and cores are now being set to their default value, so they can be removed alltogether.
2019-03-24Merge pull request #2693 from thoughtpolice/scripts/multi-user-sandboxDomen Kožar
scripts: remove default 'sandbox = false' from multi-user installer
2019-02-23scripts: remove default 'sandbox = false' from multi-user installerAustin Seipp
Sandboxing is now enabled by default on Linux, but is still disabled on macOS. However, the installer always turned it off to ensure consistent behavior. Remove this default configuration, so we fall back to the default platform-specific value. Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-02-22remove noop uses of nix-store --initzimbatm
the nix-store --init command is a noop apparently
2019-02-20install script: don't abort when "nix-channel --update" failsBjørn Forsman
Instead, print a message about what happened and tell the user what can be done (run "[sudo -i] nix-channel --update nixpkgs" again at a later time). This change allows installing Nix when you're offline. Since the multi-user installer is so verbose, the message isn't printed until the end. Fixes issue #2650 ("installation without internet connection").
2019-02-14nix.sh: Be set -u compliant.Shea Levy
2018-12-20installer: update macOS version check to 10.12.2Daiderd Jordan
Nixpkgs will drop support for <10.12 soon and thus a nix release built using the 19.03 channel will also require a newer version of macOS.
2018-11-15Merge pull request #2432 from luke-clifton/fixsslEelco Dolstra
SSL certificate search failed to find user profile certificates.
2018-10-16install script: remove unportable command check, fixup errant escapeGraham Christensen (Target)
`which` isn't necessarily portable, but `command -v` is an equivalent form. Additionally, the `\'` is not necessary, as it is already quoted by `"`.
2018-10-01nix-profile-daemon: remove cruftMatthew Bauer
This removes part of the PATH that were being added automatically in multi-user installs: - $HOME/.nix-profile/lib/kde4/libexec - shouldn't be needed anymore, we are now using kde5 - @localstatedir@/nix/profiles/default/lib/kde4/libexec - same as above - @localstatedir@/nix/profiles/default - shouldn't ever contain binaries
2018-09-20Search NIX_PROFILE for SSL CALuke Clifton
2018-09-19Look inside the user profileLuke Clifton
2018-09-01Default to single-user installGraham Christensen
2018-05-30release.nix: Generate the installer scriptEelco Dolstra
2018-05-30Move installer script from nixos-homepageEelco Dolstra
2018-05-30install-multi-user: support 'set -u' runs, closes #2193Graham Christensen
2018-05-30nix-daemon.sh profile script: operate under `set -u`Graham Christensen
If the profile is sourced inside a script with `set -u`, the check for __ETC_PROFILE_NIX_SOURCED and NIX_SSL_CERT_FILE would raise an error. A simple guard around this check allows the script to operate under standard environments (where it is fairly reasonable to assume USER and HOME are set.)
2018-05-25multi-user profile: borrow single user profiles' NIX_SSL_CERT_FILE finding logicGraham Christensen
2018-05-25install-multi-user: don't force NIX_SSL_CERT_FILEGraham Christensen
Following the lead of the single user installer, if NIX_SSL_CERT_FILE is explicitly set prior to running, accept the user-provided version.
2018-05-25Merge pull request #1664 from matthewbauer/patch-4Eelco Dolstra
Setup NIX_PATH correctly in nix-profile-daemon
2018-04-19installer: default to the daemon installor for Linux with systemdGraham Christensen
Note: don't backport to 2.0-maintenance
2018-04-19installer: allow opting in / out to the daemon installerGraham Christensen
By passing --daemon or --no-daemon, the installer can be forced to select one or the other installation options, despite what the automatic detection can provide. This commit can be backported to 2.0-maintenance because it explicitly turns off the daemon installation for Linux under systemd.
2018-04-04Setup nix_path correctly in nix-profile-daemonMatthew Justin Bauer
We need nixpkgs to be set in NIX_PATH for Nix 1.12 to work correctly
2018-03-30macos: Handle when a build user doesn't have a user IDGraham Christensen
2018-03-30Use a looser comparison for the 'user note' checkGraham Christensen
We use grep instead of an equality check because it is difficult to extract _just_ the user's note, instead it is prefixed with some plist junk. This was causing the user note to always be set, even if there was no reason for it.
2018-03-30Check for the existence of a profile target before seeing if it mentions NixGraham Christensen
Grep would ignore files that didn't exist, but would complain about files in a directory if the directory didn't exist. Simply check for the directory first, prior to grepping it.
2018-03-29Expand the multi-user installer to support Linuxes with systemdGraham Christensen
- darwin installer: delete hardware report, not necessary - moves os-specific code from the darwin installer to to `poly_*` functions - adds profile.d support to the profile targets, which automatically handles many distros which don't have a /etc/bashrc but do have an /etc/profile.d - /bin/bash -> /usr/bin/env bash - document why each excluded shellcheck check is excluded - rename the multi-user to Daemon-based
2018-02-13Merge pull request #1775 from LnL7/darwin-build-usersEelco Dolstra
installer: create 'enough' build users
2018-01-29solves #1582Giorgio Gallo
2018-01-18Merge pull request #1793 from peterstuart/fix-extra-spaceEelco Dolstra
Remove extra space in chat_about_sudo()
2018-01-15Fix manpath detectionIavael
Checking for MANPATH without quotes always returns true, so that it breaks bash-completion for man pages on modern systems without MANPATH environment variable.
2018-01-12Remove extra space.Peter Stuart
2018-01-03installer: create 'enough' build usersDaiderd Jordan
2018-01-03installer: don't touch /etc/profileDaiderd Jordan
The default profile already loads /etc/bashrc.
2017-12-29Do not export ASPELL_CONFFrederik Rietdijk
This does not belong in Nix. Setting this env var is already done by the aspell derivation found in Nixpkgs.
2017-12-20Fix escaping, fixes buildFrederik Rietdijk
2017-12-08replace lolcat with nix-infoGraham Christensen
2017-12-08darwin installer: fix on High SierraGraham Christensen
2017-11-20install-darwin-multi-user.sh: Remove superfluous nix.conf settingsEelco Dolstra
2017-10-16Pull nix-profile-daemon from 1.11Shea Levy
2017-10-12Merge pull request #1591 from shlevy/darwin-installer-no-sudo-iEelco Dolstra
darwin installer: Fix on systems where sudo -i is disabled.