Tudor's Dotfiles / Nix configuration
This is my Nix configuration, which works both for NixOS and for Nix
Acknowledgements to https://github.com/mrkuz/nixos for heavily inspiring the layout of this config.
Warning
The configuration codified here was made to be used by me and only me.
While I am publishing them to help others to learn Nix and dotfile management,
copying them verbatim will likely produce an unusable system.
Installation
NixOS
First, provision a machine with NixOS.
Then:
Desktop:
- Clone this repo somewhere on the machine.
nix run .#nixos-rebuild -- boot --flake .#<hostname> --use-remote-sudo
Remote server:
nix run .#deploy-rs -- .#<hostname>
Any other Linux distro for sane people
- Provision a machine with a "normal" Linux distro (my personal choice is Fedora)
- Install Nix (my installer of choice is nix-installer).
- Clone this repo somewhere on the machine
nix run .#home-manager -- switch --flake .#tudor
Considerations for WSL
The WSL setup assumes that you have 1Password and npiperelay installed.
You can install npiperelay with winget:
winget install npiperelay
Considerations for encrypting secrets
Secrets are encrypted and used through agenix. When provisioning a new machine, make sure to take its host public key and rekey secrets accordingly.