My old .files, feel free to poke around!
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.
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.
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.
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.
These roles manage the installation and configuration of a specific application.
application-kitty: A very simple role that installs the Kitty terminal emulator and tricks applications attempting to open XTerm into opening Kitty instead.application-helix: Installs and configures the Helix editor.
These roles manage a Window Manager installation.
desktop-hyprland: A WIP role that installs and configures Hyprlanddesktop-sway: Installs and configures SwayWM as well as a suite of other Wayland applications.
These roles install sets of applications relating to one topic, such as tools for a specific language.
stack-containers: A role that installsDockeranddocker-compose.stack-security: A role that installs several security related apps.
These roles can be invoked more then once and provide utility functions for the other roles in this playbook.
update-script: Creates a scriptdotfiles-update, which can be used to rerun the Ansible play.util-yay: A utility role that possibly installs an AUR package viayay.yaymust be installed separately at the moment.
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.
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>.yamlFor subsequent runs, I can run the helper script dotfiles-update.