Skip to content
This repository was archived by the owner on Apr 27, 2023. It is now read-only.
nikitawoottenPublic archive

About

My .files, feel free to poke around!

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

dotfiles

My old .files, feel free to poke around!

Notice

I have archived this repository as my personal philosophy towards configuration management has shifted away from an "Ansible first" mentality. I love Ansible and will absolutely continue to use it where appropriate, but I believe that Nix (and specifically Home-Manager) solves the problem of personal configuration management more elegantly. My current dotfiles can be found in nikitawootten/infra.

I still plan to maintain the ansible-role-dotfiles project, which this repository depends on.

Structure

I manage my dotfiles in Ansible using a system of plays and roles.

  • I use plays to manage device specific configuration. These plays act as "entrypoint" of my configuration.
  • I use roles to manage some discrete piece of my configuration.
  • A play is composed of multiple roles, with some extra configuration on top.

Play Index

  • yukon: My framework laptop running Arch Linux.
  • defiant: My desktop PC running Fedora.

Role Index

NOTE: Most of these roles will only work on Arch Linux. Some are configured to support Arch and Fedora

SECOND NOTE: some roles inherit other roles, ensuring roles are run in the right order.

Base Roles

These roles should generally be present on any machine that I manage.

  • base-git: A simple role that initializes my git configuration. Do not copy copy verbatim unless you would like to inherit my name.
  • base-ssh-client: Installs and configures SSH with a special config dir ~/.ssh/config.d/ where additional SSH configurations can be injected.
  • base-zsh: Installs and configures ZSH with a special config dir ~/.config/zshrc.d/ where additional ZSH configurations can be injected.

Application Roles

These roles manage the installation and configuration of a specific application.

Desktop Roles

These roles manage a Window Manager installation.

Development Stack Roles

These roles install sets of applications relating to one topic, such as tools for a specific language.

Utility Roles

These roles can be invoked more then once and provide utility functions for the other roles in this playbook.

  • update-script: Creates a script dotfiles-update, which can be used to rerun the Ansible play.
  • util-yay: A utility role that possibly installs an AUR package via yay. yay must be installed separately at the moment.

Other Roles

  • gnome-keyring: Installs the gnome keyring along with some PAM configuration.
  • pywal: PyWal generates color schemes on the fly off of a wallpaper. This role installs and configures PyWal and configures some applications to use the generated color schemes.
  • yubikey: Installs GPG and Yubikey related utilities, and configures SSH and Git to use Yubikey for authorization and commit signing. Do not use verbatim unless you have ambitions of stealing my identity.

Running

I manage my dotfiles using Ansible. I have a play for each machine (or group of machines).

# Install Ansible Galaxy dependencies
ansible-galaxy install -r requirements.yaml
# Warning: unless you are me you probably want to take a moment to understand what you're about to run.
# Do not run this unless you know what you are doing!
ansible-playbook -i hosts -K <host>.yaml

For subsequent runs, I can run the helper script dotfiles-update.

About

My .files, feel free to poke around!

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages