diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-05-22 10:10:08 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-05-22 10:10:08 -0400 |
| commit | 6f05b185099fc3f423fbdf736b8f747eab479d43 (patch) | |
| tree | fef1f3d6b552c8a14a470a1c7f84b57c10b11ed1 | |
| parent | 4e7458a97faa669898b9be044747315156cd1940 (diff) | |
files/emacs: add vin/guix-deploy function
| -rw-r--r-- | epistemia/files/emacs/.config/emacs/init.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/epistemia/files/emacs/.config/emacs/init.el b/epistemia/files/emacs/.config/emacs/init.el index 3f4afda..052e191 100644 --- a/epistemia/files/emacs/.config/emacs/init.el +++ b/epistemia/files/emacs/.config/emacs/init.el | |||
| @@ -388,7 +388,7 @@ | |||
| 388 | (use-package guix) | 388 | (use-package guix) |
| 389 | 389 | ||
| 390 | (defun vin/guix-system-reconfigure () | 390 | (defun vin/guix-system-reconfigure () |
| 391 | "Runs `guix system reconfigure` to reconfigure the current system." | 391 | "Reconfigure the current GuixSD system." |
| 392 | (interactive) | 392 | (interactive) |
| 393 | (let* ((hostname (car (split-string (system-name) "\\."))) | 393 | (let* ((hostname (car (split-string (system-name) "\\."))) |
| 394 | (cfgdir "/data/src/public/guixsd-config")) | 394 | (cfgdir "/data/src/public/guixsd-config")) |
| @@ -397,12 +397,19 @@ | |||
| 397 | cfgdir hostname)))) | 397 | cfgdir hostname)))) |
| 398 | 398 | ||
| 399 | (defun vin/guix-home-reconfigure () | 399 | (defun vin/guix-home-reconfigure () |
| 400 | "Runs `guix home reconfigure` to reconfigure the current user's profile." | 400 | "Reconfigure the current guix-home profile." |
| 401 | (interactive) | 401 | (interactive) |
| 402 | (let* ((cfgdir "/data/src/public/guixsd-config")) | 402 | (let* ((cfgdir "/data/src/public/guixsd-config")) |
| 403 | (message "Running guix home reconfigure") | 403 | (message "Running guix home reconfigure") |
| 404 | (async-shell-command (format "guix home reconfigure %s/epistemia/home/config.scm" | 404 | (async-shell-command (format "guix home reconfigure %s/epistemia/home/config.scm" |
| 405 | cfgdir)))) | 405 | cfgdir)))) |
| 406 | (defun vin/guix-deploy () | ||
| 407 | "Deploy configuration to defined GuixSD servers." | ||
| 408 | (interactive) | ||
| 409 | (let* ((cfgdir "/data/src/public/guixsd-config")) | ||
| 410 | (message "Running guix home reconfigure") | ||
| 411 | (async-shell-command (format "guix deploy %s/epistemia/deploy.scm" | ||
| 412 | cfgdir)))) | ||
| 406 | 413 | ||
| 407 | ;; TODO: skeletor.el remake my templates? at least for org-mode | 414 | ;; TODO: skeletor.el remake my templates? at least for org-mode |
| 408 | (use-package skeletor) | 415 | (use-package skeletor) |
