summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-12-07 13:59:52 -0500
committerGalen Guyer <galen@galenguyer.com>2022-12-07 13:59:52 -0500
commitd16405450d4890e6da6a771d18e4197e3709a49b (patch)
treeaf03f7916dc5ff8c1fb7f6fe4976e21faf7e462c
parentcd61c699d650ddf6524183d99b53da26868187c0 (diff)
Add debian package installer, rust nightly
-rw-r--r--lib/packages.sh3
-rw-r--r--modules/30-rust/install.sh2
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/packages.sh b/lib/packages.sh
index 05fac0a..f5d4ae5 100644
--- a/lib/packages.sh
+++ b/lib/packages.sh
@@ -3,6 +3,9 @@ function packages::install() {
"archlinux")
sudo pacman -S --needed $@
;;
+ "debian")
+ sudo apt install $@
+ ;;
*)
echo "Unknown distro, cannot install packages"
;;
diff --git a/modules/30-rust/install.sh b/modules/30-rust/install.sh
index 76df8df..0c15c51 100644
--- a/modules/30-rust/install.sh
+++ b/modules/30-rust/install.sh
@@ -13,4 +13,6 @@ function preinstall() {
function install() {
log info "installing stable rust"
rustup install stable
+ log info "installing nightly rust"
+ rustup install nightly
}