Update common.nix

This commit is contained in:
ediblerope 2025-12-08 10:22:26 +00:00 committed by GitHub
parent 60eab6b723
commit 0ab1443d78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,6 +27,7 @@ networking.networkmanager.enable = true;
# Shell aliases
environment.shellAliases = {
update = ''
dconf reset -f /org/gnome/desktop/background/
CHANNEL=$(sudo nix-channel --list | grep "^nixos " | awk '{print $2}')
if [[ "$CHANNEL" != *"nixos-unstable"* ]]; then
echo "Switching to nixos-unstable channel..."