Personal configurations v2, managed with Ansible
Find a file
Hoang Nguyen 0dd279f2e2
Put ESP on /boot
This simplify the bootloader setup. Will figure limine out in later
commits.

Also make the ESP path configurable with `esp_path` variable (default to
/efi).
2025-03-08 00:00:00 +07:00
collections/ansible_collections/local Put ESP on /boot 2025-03-08 00:00:00 +07:00
docs Put ESP on /boot 2025-03-08 00:00:00 +07:00
host_vars/thorin Add bootloader role 2025-03-02 00:00:00 +07:00
nix Put ESP on /boot 2025-03-08 00:00:00 +07:00
playbooks Support different OS variables on the same host within host_vars 2025-02-18 00:00:00 +07:00
.ansible-lint Rewrite in progress 2024-10-18 00:00:00 +07:00
.editorconfig Update some starship icons 2024-12-31 00:00:00 +07:00
.gitattributes Rewrite in progress 2024-10-18 00:00:00 +07:00
.gitignore Rewrite in progress 2024-10-18 00:00:00 +07:00
.sops.yaml Only enable OpenRC services by default 2024-11-07 00:00:00 +07:00
.yamllint Some refactoring 2024-09-30 00:00:00 +07:00
ansible.cfg Only enable OpenRC services by default 2024-11-07 00:00:00 +07:00
flake.lock Add bootloader role 2025-03-02 00:00:00 +07:00
flake.nix Import homeConfigurations from nixconfig repo 2024-11-09 00:00:00 +07:00
inventory.toml Only enable OpenRC services by default 2024-11-07 00:00:00 +07:00
LICENSE Make fcitx5 configurable 2024-11-08 00:00:00 +07:00
README.md Import homeConfigurations from nixconfig repo 2024-11-09 00:00:00 +07:00
requirements.yml Fearture parity with the old configuration 2024-11-05 00:00:00 +07:00
TODO.md Put ESP on /boot 2025-03-08 00:00:00 +07:00

dotfiles v2

This is the continuation of my old dotfiles without all the Xorg stuff.

Usage

Note

All hosts use the same connection method local. Hence, each ansible-playbook command needs to specify exactly 1 hostname via --limit (or else the playbook will be run multiple times).

# system.yml should be the first to run. It executes all tasks as the `root` user.
ansible-playbook playbooks/system.yml --limit '<host_name>'

# local.user.main playbook configures $HOME directory
ansible-playbook local.user.main --limit '<host_name>'

home-manager configuration is also provided for hosts using Nix. To configure:

# Ensure the managed user is a `trusted-user` in /etc/nix/nix.conf
# so some Nix configuration can be set by home-manager

# Source $XDG_STATE_HOME/nix/profile/etc/profile.d/hm-session-vars.sh in your shell config
# (it'll be $HOME/.nix/profile/etc/profile.d/hm-session-vars.sh if use-xdg-base-directories=false in nix.conf)

nix run .#home-manager -- switch --flake .#<host>/<username>

🌟 Credits

📄 License

MIT