Skip to content

Commit 3192dff

Browse files
committed
(ツ)_/¯ Update @ 12:25 AM
1 parent c1f4bd3 commit 3192dff

File tree

6 files changed

+42
-14
lines changed

6 files changed

+42
-14
lines changed

RUN-ME-AFTER-1ST-REBUILD-NO-SUDO.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ notify-send --icon=ktimetracker --app-name="Post set-up" "Basic set-up Complete"
241241
make-executable
242242

243243
# Change directory to the SETUP directory
244+
cd $HOME && make-executable
244245
cd /etc/nixos/ && make-executable
245246
cd /etc/nixos/SETUP && make-executable
246247

@@ -259,8 +260,8 @@ notify-send --icon=gtk-help --app-name="Cron setup" "Cron job added" "Time taken
259260
current_user=$(whoami)
260261
current_user_group=$(id -gn)
261262

262-
echo "Current user: $current_user"
263-
echo "Current user's primary group: $current_user_group"
263+
echo "Current user: $current_user" && sleep 1
264+
echo "Current user's primary group: $current_user_group" && sleep 1
264265

265266
# Change ownership to the current user and their primary group
266267
sudo chown -R $current_user:$current_user_group /etc/nixos

SETUP/PART-B-WITH-SUDO.sh

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "$(id -u)" -ne 0 ]; then
2424
else
2525
echo -e "${GREEN}[✔]${NC}PASSED: Logged as root, continuing...\n"
2626
sleep 2
27-
27+
2828
fi
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
123124
else
124125
echo -e "${RED}[✘]${NC} Failed to retrieve non-root user and group information."
125-
exit 1
126+
sleep 3
126127
fi
127128

128129
# -----------------------------------------------------------------------------------
@@ -248,6 +249,30 @@ cmatrix
248249

249250
clear
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

core/packages/packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@
302302
krusader # Norton/Total Commander clone for KDE
303303
# krusader
304304

305+
espeak-classic # Compact open source software speech synthesizer
306+
# espeak
307+
# espeak -v en+m7 -s 165 "Welcome! This script will! initiate! the! basic! setup! for your system. Thank you for using! my configuration." --punct=","
308+
305309
# ---------------------------------------------------------------------
306310
# Libraries
307311
# ---------------------------------------------------------------------

core/programs/git/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ in {
2323
# You may also need to configure Git to use your SSH key globally
2424
# (outside of this NixOS configuration).
2525
# See the note below for instructions.
26-
signingKey = "~/.ssh/id_ed25519.pub";
26+
signingKey = "ssh-ed25519";
2727
};
2828

2929
#init = { defaultBranch = "main"; };

user/tolga/sshKeys.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
tolga = [
3+
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDrS+VQMWkyNZ70Ym/TZoozhPfLpj9Rx+IlswOK01ZVx kintolga@gmail.com"
4+
];
5+
}

user/tolga/tolga.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
openssh.authorizedKeys.keys = [
8686
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDrS+VQMWkyNZ70Ym/TZoozhPfLpj9Rx+IlswOK01ZVx kintolga@gmail.com"
8787
];
88+
8889
};
8990

9091
#---------------------------------------------------------------------

0 commit comments

Comments
 (0)