nixos-config/update.sh
Charlotte Van Petegem bfc1702f36
Update dependencies
2021-04-16 10:45:04 +02:00

12 lines
300 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
set -x
nix flake update
if [ -z "${OVERRIDE:-}" ]
then
su -c "nixos-rebuild --flake . --build-host root@urithiru switch"
else
su -c "nixos-rebuild --flake . --build-host root@urithiru --override-input nixpkgs ../nixpkgs --no-write-lock-file switch"
fi