From 723709f60fb7a4ed3129d338a23a99774b1fbc7d Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 7 Sep 2021 08:56:52 -0700 Subject: [PATCH] Add hass cookbook --- hass | 31 +++++++++++++++++++++++++++++++ recipes/hass/packages | 20 ++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100755 hass create mode 100755 recipes/hass/packages diff --git a/hass b/hass new file mode 100755 index 0000000..5da74fb --- /dev/null +++ b/hass @@ -0,0 +1,31 @@ +#!/bin/bash + +# Get current directory for future use in links +cd "$(dirname "$0")" || { echo "Could not change directory to $0"; exit 1;} +PROJECT_DIR=$(pwd) +export PROJECT_DIR + +# Initialization - DO NOT REMOVE +. "$PROJECT_DIR/helpers/initialize" + +############################################################## +### Customizations start here ################################ +############################################################## + +init_paths_and_vars + +### Run recipes +recipe 'packages' +recipe 'dotfiles' +recipe 'bin' +recipe 'git' +recipe 'vim-settings' + +if command_exist 'fish' || is_installed 'build-fish' ; then + recipe 'fish' +fi + +### Show the Finished banner +finished + +# vim: set tabstop=2:softtabstop=2:shiftwidth=2:expandtab diff --git a/recipes/hass/packages b/recipes/hass/packages new file mode 100755 index 0000000..a6cf05c --- /dev/null +++ b/recipes/hass/packages @@ -0,0 +1,20 @@ +#! /bin/bash + +sudo_package_update + +# This now installs a lot of language specific stuff from python, gradle, to go. +# Should consider pulling these into different recipes that are dependent on the environment +# that I wish to bootstrap. If not a dev environment, I can trim out some of this. + +# Packages that are pretty much the same treatment or names in all systems + +# Shells +packages="fish bash" +# Common shell utils +packages="$packages tmux htop curl wget pv jq mosh bash-completion ripgrep" +# Development tools +packages="$packages neovim vim tig doxygen shellcheck ctags py3-pynvim" + +sudo_package "$packages" + +pip3 install --user padio