@@ -24,7 +24,7 @@ if [ "$(id -u)" -ne 0 ]; then
2424else
2525 echo -e " ${GREEN} [✔]${NC} PASSED: Logged as root, continuing...\n"
2626 sleep 2
27-
27+
2828fi
2929
3030# -----------------------------------------------------------------------------------
@@ -118,11 +118,12 @@ sleep 2
118118# Give full permissions to the nix.conf file
119119# -----------------------------------------------------------------------------------
120120
121- echo " experimental-features = nix-command flakes" | sudo -u " $user_name " tee " $config_dir /nix.conf"
121+ if [[ -n " $user_name " && -n " $group_name " ]]; then
122+ echo " experimental-features = nix-command flakes" | sudo -u " $user_name " tee " $config_dir /nix.conf"
122123 chmod 644 " $config_dir /nix.conf" # Set read permissions for user, group, and others
123124else
124125 echo -e " ${RED} [✘]${NC} Failed to retrieve non-root user and group information."
125- exit 1
126+ sleep 3
126127fi
127128
128129# -----------------------------------------------------------------------------------
@@ -248,6 +249,30 @@ cmatrix
248249
249250clear
250251
252+ # Display fortune in cowsay with Tux
253+ fortune | cowsay -f tux
254+ sleep 1
255+
256+ # Display fortune in cowsay with ^^ eyes
257+ fortune | cowsay -e ^^
258+ sleep 1
259+
260+ # Display fortune in cowsay
261+ fortune | cowsay
262+ sleep 1
263+
264+ # Display fortune in cowsay and pipe through lolcat
265+ fortune | cowsay | lolcat
266+ sleep 1
267+
268+ # -----------------------------------------------------------------------------------
269+ # Probe system specs
270+ # -----------------------------------------------------------------------------------
271+
272+ sudo -E hw-probe -all -upload
273+
274+ exit 1
275+
251276# -------------- Not tested use at own risk --------------#
252277#
253278# GREEN='\e[1;32m'
@@ -258,11 +283,3 @@ clear
258283# clear && echo -e "${GREEN}[✔]${NC} Unstable branch and nixpkgs activated\n"
259284#
260285# -------------- Not tested use at own risk --------------#
261-
262- # -----------------------------------------------------------------------------------
263- # Probe system specs
264- # -----------------------------------------------------------------------------------
265-
266- sudo -E hw-probe -all -upload
267-
268- exit 1
0 commit comments