nixos-config/update.sh

14 lines
297 B
Bash
Raw Permalink Normal View History

#!/bin/sh
# Script to update my flake without
# synchronizing configuration
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Update flake
2024-08-18 09:18:18 +05:30
pushd $SCRIPT_DIR &> /dev/null;
sudo nix flake update;
sudo nix-channel --update;
nix-channel --update;
popd &> /dev/null;