updating update alias
This commit is contained in:
parent
970b6e3b0f
commit
4bab9998ca
1 changed files with 25 additions and 24 deletions
49
common.nix
49
common.nix
|
|
@ -74,30 +74,31 @@ in
|
||||||
|
|
||||||
# Shell aliases
|
# Shell aliases
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
update = ''
|
update = "sudo nixos-rebuild switch --flake github:ediblerope/nixos-config";
|
||||||
CHANNEL=$(sudo nix-channel --list | grep "^nixos " | awk '{print $2}')
|
#update = ''
|
||||||
if [[ "$CHANNEL" != *"nixos-unstable"* ]]; then
|
# CHANNEL=$(sudo nix-channel --list | grep "^nixos " | awk '{print $2}')
|
||||||
echo "Switching to nixos-unstable channel..."
|
# if [[ "$CHANNEL" != *"nixos-unstable"* ]]; then
|
||||||
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
# echo "Switching to nixos-unstable channel..."
|
||||||
sudo nix-channel --update
|
# sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
||||||
fi
|
# sudo nix-channel --update
|
||||||
|
# fi
|
||||||
# Add nix-flatpak channel if not present
|
#
|
||||||
if ! sudo nix-channel --list | grep -q "nix-flatpak"; then
|
# # Add nix-flatpak channel if not present
|
||||||
echo "Adding nix-flatpak channel..."
|
# if ! sudo nix-channel --list | grep -q "nix-flatpak"; then
|
||||||
sudo nix-channel --add https://github.com/gmodena/nix-flatpak/archive/main.tar.gz nix-flatpak
|
# echo "Adding nix-flatpak channel..."
|
||||||
fi
|
# sudo nix-channel --add https://github.com/gmodena/nix-flatpak/archive/main.tar.gz nix-flatpak
|
||||||
|
# fi
|
||||||
sudo nix-channel --update
|
#
|
||||||
echo "Cleaning Flatpak state cache..."
|
# sudo nix-channel --update
|
||||||
sudo rm -f /nix/var/nix/gcroots/flatpak-state.json
|
# echo "Cleaning Flatpak state cache..."
|
||||||
sudo nixos-rebuild switch --upgrade --option tarball-ttl 0
|
# sudo rm -f /nix/var/nix/gcroots/flatpak-state.json
|
||||||
|
# sudo nixos-rebuild switch --upgrade --option tarball-ttl 0
|
||||||
# Manually reapply wallpaper settings
|
#
|
||||||
dconf write /org/gnome/desktop/background/picture-uri "'file://''${HOME}/.local/share/backgrounds/wallpaper.png'"
|
# # Manually reapply wallpaper settings
|
||||||
dconf write /org/gnome/desktop/background/picture-uri-dark "'file://''${HOME}/.local/share/backgrounds/wallpaper.png'"
|
# dconf write /org/gnome/desktop/background/picture-uri "'file://''${HOME}/.local/share/backgrounds/wallpaper.png'"
|
||||||
dconf write /org/gnome/desktop/background/picture-options "'zoom'"
|
# dconf write /org/gnome/desktop/background/picture-uri-dark "'file://''${HOME}/.local/share/backgrounds/wallpaper.png'"
|
||||||
'';
|
# dconf write /org/gnome/desktop/background/picture-options "'zoom'"
|
||||||
|
#'';
|
||||||
clean = "sudo nix-collect-garbage -d";
|
clean = "sudo nix-collect-garbage -d";
|
||||||
ll = "ls -alh";
|
ll = "ls -alh";
|
||||||
clear = "command clear && fastfetch --config /etc/fastfetch/config.jsonc";
|
clear = "command clear && fastfetch --config /etc/fastfetch/config.jsonc";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue