Skip to content

Commit

Permalink
Allow passing extra nix.conf to installer
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed May 25, 2020
1 parent 81a0731 commit 573ff8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ setup_default_profile() {

place_nix_configuration() {
cat <<EOF > "$SCRATCH/nix.conf"
$NIX_EXTRA_CONF
build-users-group = $NIX_BUILD_GROUP_NAME
EOF
_sudo "to place the default nix daemon configuration (part 2)" \
Expand Down
4 changes: 4 additions & 0 deletions scripts/install-nix-from-closure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fi

INSTALL_MODE=no-daemon
CREATE_DARWIN_VOLUME=0
NIX_EXTRA_CONF=
# handle the command line flags
while [ $# -gt 0 ]; do
case $1 in
Expand All @@ -54,6 +55,9 @@ while [ $# -gt 0 ]; do
NIX_INSTALLER_NO_MODIFY_PROFILE=1;;
--darwin-use-unencrypted-nix-store-volume)
CREATE_DARWIN_VOLUME=1;;
--nix-extra-conf-file)
NIX_EXTRA_CONF=$(cat $2)
shift;;
*)
(
echo "Nix Installer [--daemon|--no-daemon] [--no-channel-add] [--no-modify-profile]"
Expand Down

0 comments on commit 573ff8d

Please sign in to comment.