Dotfiles

How much time do you need to re-create your current workstation?

6 days enough?

Real question

what are dotfiles?

A dot-file is generally any file whose name begins with a full stop.

https://en.wikipedia.org/wiki/Dot-file

Ansible

Why and what

Pros

  • re-create in a short time
  • deprecation changes as an opportunity to learn about them
  • a simple audit of installed software and config changes
  • share, learn, inspire

Cons

  • single change takes more time
  • deprecation changes as a problem to solve on system upgrades
  • you have to be careful to not expose sensitive data

possible inspirations

  • Editor configuration
  • Prompt configuration
  • Backups (ssh & PGP keys!)
  • SSH config
  • Gnome config
  • Used software

re-creation as a habit?

https://martinfowler.com/bliki/PhoenixServer.html

The primary advantage of using phoenix servers is to avoid configuration drift: ad hoc changes to a systems configuration that go unrecorded.

Nixos

NixOS has a completely declarative approach to configuration management: you write a specification of the desired configuration of your system in NixOS’s modular language, and NixOS takes care of making it happen.

https://nixos.org/

http://docs.ansible.com/ansible/latest/index.html

https://knpuniversity.com/screencast/ansible/

http://hakunin.com/six-ansible-practices

http://www.nickhammond.com/automating-development-environment-ansible/

Learn you an ANSIBLE for great good!

Questions?

Dotfiles

By Jan Dudulski

Dotfiles

  • 135