aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-06-15 13:49:44 +0200
committerGitHub <noreply@github.com>2023-06-15 13:49:44 +0200
commite672d52f7caae591e4d07747a312f2bef538bbea (patch)
treeaf8ff5115991a3d23f7f11d453171c2937f276a9 /scripts
parent71e53c0c6a637a2880364805d717f4cabce4d9b5 (diff)
parent80451b762d71bfbc14dbd2c2d88fda7dcb9571cf (diff)
Merge pull request #8512 from scarf005/install-show-uid
build: show UID and GID in welcome message
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-multi-user.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh
index c11783158..656769d84 100644
--- a/scripts/install-multi-user.sh
+++ b/scripts/install-multi-user.sh
@@ -700,6 +700,10 @@ EOF
}
welcome_to_nix() {
+ local -r NIX_UID_RANGES="${NIX_FIRST_BUILD_UID}..$((NIX_FIRST_BUILD_UID + NIX_USER_COUNT - 1))"
+ local -r RANGE_TEXT=$(echo -ne "${BLUE}(uids [${NIX_UID_RANGES}])${ESC}")
+ local -r GROUP_TEXT=$(echo -ne "${BLUE}(gid ${NIX_BUILD_GROUP_ID})${ESC}")
+
ok "Welcome to the Multi-User Nix Installation"
cat <<EOF
@@ -713,8 +717,8 @@ manager. This will happen in a few stages:
2. Show you what I am going to install and where. Then I will ask
if you are ready to continue.
-3. Create the system users and groups that the Nix daemon uses to run
- builds.
+3. Create the system users ${RANGE_TEXT} and groups ${GROUP_TEXT}
+ that the Nix daemon uses to run builds.
4. Perform the basic installation of the Nix files daemon.