Giter Club home page Giter Club logo

dotfiles's Introduction

dotfiles

macOS, Linux and OpenBSD dotfiles! very heavily personalized to my usage but feel free to copy/remix~

Installation

Bootstrap with brew or the install.sh script, setup with chezmoi

# macOS specific
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install chezmoi

# init
chezmoi init rubyroobs

# GPG
gpgconf --kill scdaemon # only for openbsd
gpg --edit-card # enter: fetch

# change shell to zsh
chsh -s $(which zsh)

# setup mac like keybinds https://superuser.com/a/1197929

# void: enable services and setup pam_rundir
sudo ln -s /etc/srv/dbus /var/service
sudo ln -s /etc/srv/dhcpcd /var/service
sudo ln -s /etc/srv/elogind /var/service
sudo ln -s /etc/srv/pcscd /var/service
sudo ln -s /etc/srv/polkitd /var/service
sudo ln -s /etc/srv/wpa_supplicant /var/service
echo "session         optional        pam_rundir.so" | sudo tee -a /etc/pam.d/login
sudo usermod -a -G users ruby
sudo usermod -a -G plugdev ruby

# openbsd: enable rcctls
doas rcctl enable apmd
doas rcctl start apmd
doas rcctl enable pcscd
doas rcctl start pcscd 

# macOS: enable services
brew services start borders
brew services start sketchybar

After setting up op (1Password CLI), get yubikey private keys tubs and generate secrets from templates:

for secretFile in \
    $HOME/.config/gh/hosts.yml \
    $HOME/.config/git/credentials ; do
    op_update_secret_from_template $secretFile
done

for yubikeyHandle in \
    5AN_562_fox \
    5AT_825_mona \
    5CNF_636_joker \
    5CN_104_skull \
    5CTF_544_panther ; do
    op_download_ssh_key $yubikeyHandle
done

Post-installation

Linux

  • WhiteSur cursors are not automatically installed
  • easyeffects/pulseaudio for x1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.