From 479e79bc1316b89841fc43157021f02c77bb077c Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Thu, 18 Mar 2021 17:36:19 -0400 Subject: [PATCH] Install package method --- modules/core.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/core.org b/modules/core.org index d30aec3..2899cac 100644 --- a/modules/core.org +++ b/modules/core.org @@ -80,6 +80,16 @@ Despite having our *stateful* and *immutable* configurations seperate, it's good Define some helper methods to use throughout the configuration. +** Packages + +Define a method to install system packages on *Debian/Ubuntu* derived systems. + +#+begin_src emacs-lisp +(defun dotfiles/install (pkgs) + "Install system packages on Debian/Ubuntu systems." + (async-shell-command (concat "sudo apt install -y " pkgs))) +#+end_src + ** Tangle directory Build all of the *Org*[fn:4] files within a given directory, recursively.