Skip to content

Commit

Permalink
(ツ)_/¯ Update @ 12:25 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgaerok committed Sep 22, 2023
1 parent c1f4bd3 commit 3192dff
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 14 deletions.
5 changes: 3 additions & 2 deletions RUN-ME-AFTER-1ST-REBUILD-NO-SUDO.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ notify-send --icon=ktimetracker --app-name="Post set-up" "Basic set-up Complete"
make-executable

# Change directory to the SETUP directory
cd $HOME && make-executable
cd /etc/nixos/ && make-executable
cd /etc/nixos/SETUP && make-executable

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

echo "Current user: $current_user"
echo "Current user's primary group: $current_user_group"
echo "Current user: $current_user" && sleep 1
echo "Current user's primary group: $current_user_group" && sleep 1

# Change ownership to the current user and their primary group
sudo chown -R $current_user:$current_user_group /etc/nixos
Expand Down
39 changes: 28 additions & 11 deletions SETUP/PART-B-WITH-SUDO.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ "$(id -u)" -ne 0 ]; then
else
echo -e "${GREEN}[✔]${NC}PASSED: Logged as root, continuing...\n"
sleep 2

fi

# -----------------------------------------------------------------------------------
Expand Down Expand Up @@ -118,11 +118,12 @@ sleep 2
# Give full permissions to the nix.conf file
# -----------------------------------------------------------------------------------

echo "experimental-features = nix-command flakes" | sudo -u "$user_name" tee "$config_dir/nix.conf"
if [[ -n "$user_name" && -n "$group_name" ]]; then
echo "experimental-features = nix-command flakes" | sudo -u "$user_name" tee "$config_dir/nix.conf"
chmod 644 "$config_dir/nix.conf" # Set read permissions for user, group, and others
else
echo -e "${RED}[✘]${NC} Failed to retrieve non-root user and group information."
exit 1
sleep 3
fi

# -----------------------------------------------------------------------------------
Expand Down Expand Up @@ -248,6 +249,30 @@ cmatrix

clear

# Display fortune in cowsay with Tux
fortune | cowsay -f tux
sleep 1

# Display fortune in cowsay with ^^ eyes
fortune | cowsay -e ^^
sleep 1

# Display fortune in cowsay
fortune | cowsay
sleep 1

# Display fortune in cowsay and pipe through lolcat
fortune | cowsay | lolcat
sleep 1

# -----------------------------------------------------------------------------------
# Probe system specs
# -----------------------------------------------------------------------------------

sudo -E hw-probe -all -upload

exit 1

# -------------- Not tested use at own risk --------------#
#
# GREEN='\e[1;32m'
Expand All @@ -258,11 +283,3 @@ clear
# clear && echo -e "${GREEN}[✔]${NC} Unstable branch and nixpkgs activated\n"
#
# -------------- Not tested use at own risk --------------#

# -----------------------------------------------------------------------------------
# Probe system specs
# -----------------------------------------------------------------------------------

sudo -E hw-probe -all -upload

exit 1
4 changes: 4 additions & 0 deletions core/packages/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@
krusader # Norton/Total Commander clone for KDE
# krusader

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

# ---------------------------------------------------------------------
# Libraries
# ---------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion core/programs/git/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ in {
# You may also need to configure Git to use your SSH key globally
# (outside of this NixOS configuration).
# See the note below for instructions.
signingKey = "~/.ssh/id_ed25519.pub";
signingKey = "ssh-ed25519";
};

#init = { defaultBranch = "main"; };
Expand Down
5 changes: 5 additions & 0 deletions user/tolga/sshKeys.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
tolga = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDrS+VQMWkyNZ70Ym/TZoozhPfLpj9Rx+IlswOK01ZVx [email protected]"
];
}
1 change: 1 addition & 0 deletions user/tolga/tolga.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDrS+VQMWkyNZ70Ym/TZoozhPfLpj9Rx+IlswOK01ZVx [email protected]"
];

};

#---------------------------------------------------------------------
Expand Down

0 comments on commit 3192dff

Please sign in to comment.