% cat ~/.rcrc
DOTFILES_DIRS="$HOME/src/github.com/teoljungberg/dotfiles"
EXCLUDES="*.md cron/* result rcrc"
HOSTNAME="A_HOST"
- Install nix
- Add nix channels
% home-manager switch -f $(pwd)/host-A_HOST/config/home-manager/home.nix
cp /etc/nixos/configuration.nix{,.bak}
- Modify
/etc/nixos/configuration.nix
to your hearts content. Reboot server. ln -sf $(pwd)/host-A_HOST/nixpkgs/nixos-configuration.nix /etc/nixos/configuration.nix
- Add nix channels
% nix-channel --list
nixpkgs https://nixos.org/channels/nixos-NIXPKGS_RELEASE
home-manager https://github.com/nix-community/home-manager/archive/NIXPKGS_RELEASE.tar.gz
If on Darwin:
% nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/release-NIXPKGS_RELEASE.tar.gz
nixpkgs https://nixos.org/channels/nixpkgs-NIXPKGS_RELEASE-darwin
Add the cron/crontab-teoljungberg
to your own crontab(5)
: