about summary refs log tree commit diff
path: root/scripts/install-multi-user.sh
AgeCommit message (Collapse)AuthorFilesLines
2020-01-04 install-multi-user.sh: Remove unused variablesEelco Dolstra1-3/+0
https://hydra.nixos.org/build/104119659 (cherry picked from commit 2f96a89646c6e55e2f1bbb80805dcbbe60fa94ae)
2019-10-09 TypoEelco Dolstra1-1/+1
(cherry picked from commit 9277e72cb0aac72100c01334fdf25ea79d19052e)
2019-10-09 Remove some redundant initializationEelco Dolstra1-6/+0
(cherry picked from commit c43d9f6131102f2761f22b1ec26f345d357f169c)
2019-10-09 Remove world-writability from per-user directoriesEelco Dolstra1-5/+4
'nix-daemon' now creates subdirectories for users when they first connect. Fixes #509 (CVE-2019-17365). Should also fix #3127. (cherry picked from commit 5a303093dcae1e5ce9212616ef18f2ca51020b0d)
2019-08-28 Merge pull request #2745 from samueldr/install/detect-systemd-separatelyEelco Dolstra1-3/+7
install-multi-user: Detect and fail lack of systemd separately
2019-08-22 Allow empty /nix directory in multi-user installerMatthew Bauer1-1/+1
With macOS catalina, we can no longer modify the root system volume (#2925). macOS provides a system configuration file in synthetic.conf(5) to create empty root directories. This can be used to mount /nix to a separate volume. As a result, this directory will need to already exist prior to installation. Instead, check for /nix/store and /nix/var for a live Nix installation.
2019-06-17 Merge pull request #2746 from bjornfor/install-multi-user-defaultsEelco Dolstra1-3/+0
install-multi-user: reduce max-jobs from 32 to 1
2019-05-01 Merge pull request #2679 from bjornfor/offline-installEelco Dolstra1-1/+9
install script: don't abort when "nix-channel --update" fails
2019-03-27 install-multi-user: remove unneeded settings from nix.confBjørn Forsman1-3/+0
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-27 install-multi-user: reduce max-jobs from 32 to 1Bjørn Forsman1-1/+1
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-26 install-multi-user: Detect and fail lack of systemd separatelySamuel Dionne-Riel1-3/+7
Otherwise, the user is shown: ``` Sorry, I don't know what to do on Linux ``` Which is... not exactly right.
2019-03-24 Merge pull request #2693 from thoughtpolice/scripts/multi-user-sandboxDomen Kožar1-1/+0
scripts: remove default 'sandbox = false' from multi-user installer
2019-02-23 scripts: remove default 'sandbox = false' from multi-user installerAustin Seipp1-1/+0
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-22 remove noop uses of nix-store --initzimbatm1-3/+0
the nix-store --init command is a noop apparently
2019-02-20 install script: don't abort when "nix-channel --update" failsBjørn Forsman1-1/+9
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").
2018-05-30 install-multi-user: support 'set -u' runs, closes #2193Graham Christensen1-1/+1
2018-05-25 install-multi-user: don't force NIX_SSL_CERT_FILEGraham Christensen1-3/+9
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-03-30 macos: Handle when a build user doesn't have a user IDGraham Christensen1-2/+2
2018-03-30 Use a looser comparison for the 'user note' checkGraham Christensen1-1/+5
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-30 Check for the existence of a profile target before seeing if it mentions NixGraham Christensen1-1/+1
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-29 Expand the multi-user installer to support Linuxes with systemdGraham Christensen1-0/+793
- 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