Initial commit of NixOS config

This commit is contained in:
2025-08-07 14:04:06 +02:00
commit 3255b199db
24 changed files with 996 additions and 0 deletions

35
other/aliases Normal file
View File

@ -0,0 +1,35 @@
#----------
# Commands that will be used as aliases for zsh and bash
#----------
# Common commands
#-----
alias py="python3"
alias mcrow="sudo micro"
alias neofetch="fastfetch"
# Nix Specific commands
#-----
alias nix-upd="sudo nixos-rebuild switch --flake /etc/nixos"
alias nix-update="sudo nixos-rebuild switch --flake /etc/nixos"
alias nix-edit="sudoedit /etc/nixos/configuration.nix"
alias nix-packages="sudoedit /etc/nixos/packages.nix"
alias nix-pkgs="sudoedit /etc/nixos/packages.nix"
alias nix-flake="sudoedit /etc/nixos/flake.nix"
alias nix-edit-flake="sudoedit /etc/nixos/flake.nix"
alias nix-zsh="sudoedit /etc/nixos/zsh.nix"
alias nix-edit-zsh="sudoedit /etc/nixos/zsh.nix"
alias nix-aliases="sudoedit /etc/nixos/other/aliases"
alias nix-edit-aliases="sudoedit /etc/nixos/other/aliases"
alias nix-regenerate-config="sudo nixos-generate-config"
alias nix-home="echo To edit home manager run command \'home-edit\'"
alias home-edit="sudoedit /etc/nixos/home.nix"
alias home-upd="home-manager switch"
alias home-update="home-manager switch"
alias cd-nix="cd /etc/nixos/"

12
other/bookmarks-default Normal file
View File

@ -0,0 +1,12 @@
[
{
name = "Bookmarks Toolbar";
toolbar = true;
bookmarks = [
{
name = "NixOS Packages";
url = "https://search.nixos.org/packages";
}
];
}
]

16
other/colors.sh Normal file
View File

@ -0,0 +1,16 @@
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
LIGHTGRAY='\033[0;37m'
DARKGRAY='\033[1;30m'
LIGHTRED='\033[1;31m'
LIGHTGREEN='\033[1;32m'
YELLOW='\033[1;33m'
LIGHTBLUE='\033[1;34m'
LIGHTPURPLE='\033[1;35m'
LIGHTCYAN='\033[1;36m'
WHITE='\033[1;37m'

38
other/konsave.sh Normal file
View File

@ -0,0 +1,38 @@
source /etc/nixos/other/colors.sh
FLAG_FILE="/home/cookiez/.flags/theme-flag"
/run/current-system/sw/bin/konsave -i /etc/nixos/other/theme.knsv
/run/current-system/sw/bin/konsave -i /etc/nixos/other/theme.knsv
/run/current-system/sw/bin/konsave -a theme
progress_bar() {
local duration=$1
local interval=0.25
local total_intervals=$((duration / interval))
local progress=""
local bar_length=10
for ((i=0; i<total_intervals; i++)); do
progress="${progress}-"
printf "\rApplying: [%-${bar_length}s]" "$progress"
sleep $interval
done
echo -ne "\r[${progress}] Done!\n"
}
mkdir -p "$(dirname "$FLAG_FILE")"
touch "$FLAG_FILE"
echo "Flag for knowing weather the Default theme packaged with this NixOS install was actually applied! (If this exists than it should be applied already)" > "$FLAG_FILE"
echo -e "Use ${RED}'sudo reboot -h 0'${NOCOLOR} to successfully apply the theme, if logging out manually ${YELLOW}doesn't${NOCOLOR} work!"
progress_bar 2.5
echo ""
echo -n "Do you want to reboot now? (y/n): "
read -r answer
if [ -z "$answer" ] || [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
echo "Rebooting! ..."
sudo shutdown -r now
else
echo "Make sure to log out/reboot later!"
fi

BIN
other/pfp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

9
other/pfp.sh Normal file
View File

@ -0,0 +1,9 @@
mkdir -p /var/lib/AccountsService/{icons,users}
cp /etc/nixos/other/pfp.png /var/lib/AccountsService/icons/cookiez
echo -e "[User]\nIcon=/var/lib/AccountsService/icons/cookiez\n" > /var/lib/AccountsService/users/cookiez
chown root:root /var/lib/AccountsService/users/cookiez
chmod 0600 /var/lib/AccountsService/users/cookiez
chown root:root /var/lib/AccountsService/icons/cookiez
chmod 0444 /var/lib/AccountsService/icons/cookiez

3
other/sway-config Normal file
View File

@ -0,0 +1,3 @@
input * {
xkb_layout de
}

9
other/theme-reminder.sh Normal file
View File

@ -0,0 +1,9 @@
source /etc/nixos/other/colors.sh
FLAG_FILE="/home/cookiez/.flags/theme-flag"
if [ ! -f "$FLAG_FILE" ]; then
echo -e "${RED}Warning: Make sure to apply the custom system theme!${NOCOLOR} (source '/etc/nixos/other/konsave.sh')"
fi
#else
# echo "Flag file exists - Theme should be applied already!"
#fi

BIN
other/theme.knsv Normal file

Binary file not shown.

BIN
other/wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 MiB