Skip to content

Commit 6b6b5ca

Browse files
committed
initial for workcomp angrist
1 parent a046b0f commit 6b6b5ca

24 files changed

+92
-75
lines changed

bin/home-manager-flake-switch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# [[file:../workstation.org::*flake-world equivalent to home-manager 'switch'][flake-world equivalent to home-manager 'switch':1]]
1212
set -u # error in case WORKSTATION_NAME is not set
1313
function home_manager_flake_switch() {
14-
nix build --no-link ~/workstation/#homeConfigurations.${WORKSTATION_NAME}.$(whoami).activationPackage --show-trace
15-
"$(nix path-info ~/workstation/#homeConfigurations.${WORKSTATION_NAME}.$(whoami).activationPackage)"/activate --show-trace
14+
nix build --no-link ~/workstation2/#homeConfigurations.${WORKSTATION_NAME}.$(whoami).activationPackage --show-trace
15+
"$(nix path-info ~/workstation2/#homeConfigurations.${WORKSTATION_NAME}.$(whoami).activationPackage)"/activate --show-trace
1616
}
1717
home_manager_flake_switch
1818
# flake-world equivalent to home-manager 'switch':1 ends here

bin/tangle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66

77
# [[file:../workstation.org::*Makefile][Makefile:2]]
8-
source ~/workstation/lib/shell/foundation.sh
8+
source ~/workstation2/lib/shell/foundation.sh
99
$WORKSTATION_EMACS_CONFIG_DIR/bin/doomscript lib/emacs/tangle-file.el
1010
# Makefile:2 ends here

bootstrap-workstation.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,15 @@ else
249249
fi
250250

251251
info ensuring nix is installed
252-
~/workstation/lib/shell/setup/ensure_nix_installed.sh
252+
~/workstation2/lib/shell/setup/ensure_nix_installed.sh
253253

254254
info finished ensuring nix is installed
255255

256256
info setting up nix.conf
257-
~/workstation/lib/shell/setup/install_system_nix_conf.sh
257+
~/workstation2/lib/shell/setup/install_system_nix_conf.sh
258258

259259
info restarting nix daemon
260-
~/workstation/lib/shell/setup/restart_nix_daemon.sh
260+
~/workstation2/lib/shell/setup/restart_nix_daemon.sh
261261
info nix daemon restarted
262262

263263
NIX_DAEMON_PATH='/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
@@ -268,35 +268,35 @@ set -u
268268

269269
is_mac && {
270270
info installing darwin-nix
271-
~/workstation/lib/shell/setup/install_nix_darwin.sh
271+
~/workstation2/lib/shell/setup/install_nix_darwin.sh
272272
info finished installing darwin-nix
273273
}
274274

275275

276-
~/workstation/lib/shell/setup/install_home_manager.sh
276+
~/workstation2/lib/shell/setup/install_home_manager.sh
277277

278-
~/workstation/lib/shell/setup/home-manager-flake-switch.sh
278+
~/workstation2/lib/shell/setup/home-manager-flake-switch.sh
279279

280280
set +u
281281
# evaluating this with set -u will cause an unbound variable error
282282
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
283283
set -u
284284

285-
~/workstation/lib/shell/setup/install_doom_emacs_no_nix.sh
285+
~/workstation2/lib/shell/setup/install_doom_emacs_no_nix.sh
286286
info linking dotfiles that should be symlinked
287-
bash ~/workstation/lib/shell/setup/link-dotfiles.sh -f -c
287+
bash ~/workstation2/lib/shell/setup/link-dotfiles.sh -f -c
288288
info finished linking dotfiles
289289
info "building the 'ws' script"
290-
~/workstation/lib/shell/setup/build_ws_tool.sh
290+
~/workstation2/lib/shell/setup/build_ws_tool.sh
291291

292292
info "running the 'ws install' process"
293-
~/workstation/lib/shell/setup/ws_install.sh
293+
~/workstation2/lib/shell/setup/ws_install.sh
294294
info "'ws install' process completed"
295295

296296
info linking dotfiles that should be symlinked
297-
bash ~/workstation/lib/shell/setup/link-dotfiles.sh -f -c
297+
bash ~/workstation2/lib/shell/setup/link-dotfiles.sh -f -c
298298
info finished linking dotfiles
299-
bash ~/workstation/lib/shell/setup/initial_bitwarden_sync.sh
299+
bash ~/workstation2/lib/shell/setup/initial_bitwarden_sync.sh
300300

301301
cat <<-EOF
302302
Success! However, there are some remaining manual set up steps required.

dotfiles/config/doom/config.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
;; change `org-directory'. It must be set before org loads!
3636

3737
(setq workstation-config-path
38-
(concat "~/workstation/hosts/current/config.el"))
38+
(concat "~/workstation2/hosts/current/config.el"))
3939

4040
(when (file-exists-p workstation-config-path)
4141
(load workstation-config-path))

dotfiles/config/doom/init.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
vc ; version-control and Emacs, sitting in a tree
7979

8080
:term
81-
;;eshell ; the elisp shell that works everywhere
81+
eshell ; the elisp shell that works everywhere
8282
;;shell ; simple shell REPL for Emacs
8383
;;term ; basic terminal emulator for Emacs
8484
vterm ; the best terminal emulation in Emacs
@@ -98,6 +98,7 @@
9898
;;editorconfig ; let someone else argue about tabs vs spaces
9999
;;ein ; tame Jupyter notebooks with emacs
100100
(eval +overlay) ; run code, run (also, repls)
101+
;;gist ; interacting with github gists
101102
lookup ; navigate your code and its documentation
102103
lsp ; M-x vscode
103104
magit ; a git porcelain for Emacs
@@ -112,7 +113,8 @@
112113
;;upload ; map local to remote projects via ssh/ftp
113114

114115
:os
115-
(:if (featurep :system 'macos) macos) ; improve compatibility with macOS
116+
;; (:if (featurep :system 'macos) macos) ; improve compatibility with macOS
117+
(:if IS-MAC macos) ; improve compatibility with macOS
116118
;;tty ; improve the terminal Emacs experience
117119

118120
:lang

dotfiles/zshrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ sourceIfExists () {
44
fi
55
}
66

7-
sourceIfExists ~/workstation/lib/shell/settings.sh
8-
sourceIfExists ~/workstation/lib/shell/paths.sh
9-
sourceIfExists ~/workstation/hosts/current/zshrc.sh
7+
sourceIfExists ~/workstation2/lib/shell/settings.sh
8+
sourceIfExists ~/workstation2/lib/shell/paths.sh
9+
sourceIfExists ~/workstation2/hosts/current/zshrc.sh
1010

1111
export EDITOR=emacsclient
1212
export GIT_EDITOR=$EDITOR
@@ -40,3 +40,5 @@ sourceIfExists /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
4040
sourceIfExists ~/.nix-profile/etc/profile.d/hm-session-vars.sh
4141
sourceIfExists ~/workstation/lib/shell/funcs.sh
4242
sourceIfExists ~/.ghcup/env
43+
44+
sourceIfExists ~/workstation2/lib/shell/funcs.sh

hosts/aeglos/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
my main personal workstation
2+
* [ ]

hosts/aeglos/zshrc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
# [[file:../../workstation.org::*aeglos/][aeglos/:2]]
3-
source ~/workstation/hosts/aeglos/settings.sh
3+
source ~/workstation2/hosts/aeglos/settings.sh
44
# aeglos/:2 ends here

hosts/angrist/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
my work-workstation
2+
3+
4+

hosts/angrist/config.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
(after! org
2+
(setq org-directory "~/freckle/notes/"))

0 commit comments

Comments
 (0)