Skip to content

$HOME is wherever I'm with you

Notifications You must be signed in to change notification settings

teoljungberg/dotfiles

Repository files navigation

teoljungberg/dotfiles

rcm(1)

% cat ~/.rcrc
DOTFILES_DIRS="$HOME/src/github.com/teoljungberg/dotfiles"
EXCLUDES="*.md cron/* result rcrc"
HOSTNAME="A_HOST"

Darwin

  1. Install nix
  2. Install nix-darwin
  3. Add nix channels
% darwin-rebuild switch -I darwin-config=$(pwd)/host-A_HOST/nixpkgs/darwin-configuration.nix

NixOS

  1. cp /etc/nixos/configuration.nix{,.bak}
  2. Modify /etc/nixos/configuration.nix to your hearts content. Reboot server.
  3. ln -sf $(pwd)/host-A_HOST/nixpkgs/nixos-configuration.nix /etc/nixos/configuration.nix
  4. Add nix channels

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
darwin https://github.com/LnL7/nix-darwin/archive/master.tar.gz
home-manager https://github.com/nix-community/home-manager/archive/release-NIXPKGS_RELEASE.tar.gz
nixpkgs https://nixos.org/channels/nixpkgs-NIXPKGS_RELEASE-darwin

Cron

Add the cron/crontab-teoljungberg to your own crontab(5):