-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcc11b2
commit 6998214
Showing
4 changed files
with
93 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
# [[file:../../../workstation.org::*Install doom emacs without nix][Install doom emacs without nix:2]] | ||
source ~/workstation/lib/shell/foundation.sh | ||
|
||
function install_doom_emacs_no_nix() { | ||
{ | ||
cd $WORKSTATION_EMACS_CONFIG_DIR | ||
[[ "$(git remote get-url origin)" == 'https://github.com/hlissner/doom-emacs' ]] | ||
} || { | ||
mv_dated_backup $WORKSTATION_EMACS_CONFIG_DIR | ||
time git clone --depth 1 https://github.com/doomemacs/doomemacs $WORKSTATION_EMACS_CONFIG_DIR/ | ||
# alternative: use this if encounter problems | ||
# ~/.emacs.d/bin/doom -y install; | ||
# time timeout 45m bash -c 'yes | ~/.emacs.d/bin/doom install' || exit 0 | ||
# time bash -c 'yes | ~/.emacs.d/bin/doom install' || exit 0 | ||
time timeout 60m bash -c "yes | $WORKSTATION_EMACS_CONFIG_DIR/bin/doom install" || exit 0 | ||
$WORKSTATION_EMACS_CONFIG_DIR/bin/doom sync | ||
echo FINISHED INSTALLING DOOM; | ||
} | ||
} | ||
install_doom_emacs_no_nix | ||
# Install doom emacs without nix:2 ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
# [[file:../../../workstation.org::*Install nix-darwin][Install nix-darwin:2]] | ||
source ~/workstation/lib/shell/foundation.sh | ||
source ~/workstation/lib/shell/setup/workstation_setup_verions.sh | ||
|
||
function nix_darwin_rebuild_flake() { | ||
nix build --extra-experimental-features "nix-command flakes" \ | ||
~/workstation\#darwinConfigurations.${WORKSTATION_NAME}.system | ||
./result/sw/bin/darwin-rebuild switch --flake ~/workstation#${WORKSTATION_NAME} | ||
|
||
rm -rf ./result | ||
} | ||
|
||
function install_nix_darwin() { | ||
cd $WORKSTATION_DIR | ||
nix-build https://github.com/LnL7/nix-darwin/archive/${WORKSTATION_NIX_DARWIN_VERSION}.tar.gz -A installer | ||
./result/bin/darwin-installer | ||
|
||
nix_darwin_rebuild_flake | ||
} | ||
|
||
install_nix_darwin | ||
# Install nix-darwin:2 ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters