Big refactor (#8)

* Update to 24.11 channel and add `ghostty`

* full restructure

* minor changes

* fix issues

* fixes and improvements

* Add back some old config

* working example for now
This commit is contained in:
Bart van der Braak 2025-01-21 22:26:22 +01:00 committed by GitHub
parent 5ac124b389
commit ab338d3b15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 935 additions and 3232 deletions

19
nixos/symlink.sh Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
nixos_home="${1:-$(dirname "$(realpath "$0")")}"
# Check if the symlink exists and is valid
if [ -L /etc/nixos ] && [ -e /etc/nixos ]; then
echo "The symlink /etc/nixos already exists and is valid. Exiting."
exit 0
fi
# Backup current /etc/nixos if it exists
if [ -e /etc/nixos ]; then
mv /etc/nixos /etc/nixos.bak
echo "Created backup of current /etc/nixos"
fi
# Create symlink
ln -s "$nixos_home" /etc/nixos
echo "Symlinked /etc/nixos to $nixos_home"