Initial install script for iSH alpine setup

This commit is contained in:
Tyler Starr 2023-10-14 13:06:38 -07:00
parent eba052c480
commit 8c9b4825ff
57 changed files with 81 additions and 14 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
.gen
temp_bin
home/.chezmoidata.yaml

View File

@ -1,2 +1,2 @@
secret:
command: "rbw-get"
command: 'rbw-get'

3
home/.chezmoidata.yaml Normal file
View File

@ -0,0 +1,3 @@
user: tstarr
network_interface: eth0
work: false

View File

@ -1,8 +0,0 @@
user: dudebro
hostname: *insert FTL ship here*
desktop: dwm (jk) # valid values: i3, gnome
network_interface: reeeeee
git_user: hAxOr
git_email: &my_email dude@bro.com
bitwarden_email: *my_email
work: false

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
if [ -f ~/.ssh/keys/github_personal ]; then
chmod 600 ~/.ssh/keys/github_personal
fi

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
chmod 600 ~/.ssh/keys/github_personal

View File

@ -0,0 +1,24 @@
#!/bin/sh
# https://github.com/starr-dusT/dotfiles
# Install edge repo
echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
apk update
# Install packages
apk add --virtual .packs \
task timewarrior git go make fzf neovim nnn rbw
# Build and install zk
mkdir -p ~/tmp
mkdir -p ~/bin
git clone https://github.com/mickael-menu/zk.git ~/tmp/zk
cd ~/tmp/zk
make
mv zk ~/bin/zk
# Clone dotfiles
git clone git@github.com:starr-dusT/dotfiles.git ~/.local/share/chezmoi
chezmoi init
chezmoi apply -k
chezmoi apply

View File

@ -2,7 +2,7 @@
# https://github.com/starr-dusT/dotfiles
# nixos
alias nu="cd ~/.local/share/chezmoi/provision && \
alias nu="cd ~/.local/share/chezmoi/nixos/provision && \
sudo nixos-rebuild switch --flake .#$(hostname) && \
cd -"
# sway

View File

@ -0,0 +1,23 @@
#!/bin/sh
# https://github.com/starr-dusT/dotfiles
# Install edge repo
echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
apk update
# Install packages
apk add --virtual .packs \
task timewarrior git go \
make fzf neovim nnn rbw \
chezmoi openssh bash
# Build and install zk
mkdir -p ~/tmp
mkdir -p ~/bin
git clone https://github.com/mickael-menu/zk.git ~/tmp/zk
cd ~/tmp/zk
make
mv zk ~/bin/zk
# Clone dotfiles
git clone https://github.com/starr-dusT/dotfiles.git ~/.local/share/chezmoi

View File

@ -0,0 +1,24 @@
# Provision Alpine
> \*Funny joke here.\*
Set of configs files to setup Alpine Linux on iSH.
## Usage
Run following to install:
```bash
apk add curl && \
curl https://raw.githubusercontent.com/starr-dusT/dotfiles/master/provision/alpine/alpine-install-iSH.sh | sh
```
Then run the following commands:
```bash
rbw config set email <email>
chezmoi init
chezmoi apply -k # This command will fail
bash
chezmoi apply -k # This command will fail
chezmoi apply # First time don't overwrite file
```