about summary refs log tree commit diff
path: root/bin/update.sh
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-14 13:19:34 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-14 17:44:02 -0800
commit7ccc041397dc7bc25bcbcf37a4133d0da9d9a5ab (patch)
tree7854491fae18e46463a2634fe5fa762632b6a582 /bin/update.sh
parentbuild(deps): bump actions/checkout from 3 to 4 (diff)
downloadworld-7ccc041397dc7bc25bcbcf37a4133d0da9d9a5ab.tar.gz
use devshell to build / switch the configuration
Diffstat (limited to 'bin/update.sh')
-rwxr-xr-xbin/update.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/bin/update.sh b/bin/update.sh
deleted file mode 100755
index 1593716..0000000
--- a/bin/update.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh -e
-
-GREEN='\033[1;32m'
-CLEAR='\033[0m'
-
-export NIXPKGS_ALLOW_UNFREE=1
-
-# Navigate to the directory of this script
-cd "$(dirname "$(readlink -f "$0")")"
-cd ..
-
-echo "${GREEN}Starting build...${CLEAR}"
-nix --experimental-features 'nix-command flakes' build .#darwinConfigurations."$(hostname -s)".system "$@"
-
-echo "${GREEN}Switching to new generation...${CLEAR}"
-./result/sw/bin/darwin-rebuild switch --flake .# "$@"
-
-echo "${GREEN}Cleaning up...${CLEAR}"
-unlink ./result
-
-echo "${GREEN}Done${CLEAR}"