/dotfiles

My personal dotfiles… both to set up a new computer and to keep my dev environments synced.

Primary LanguageLua

Dotfiles

This is to describe the barebones development system I use. Supports NixOS on WSL, Intel and Silicon Macs.

Install Nix

On OSX: Determinate Systems Installer. On WSL2: WSL2 Nix

Bootstrap

Warning

I haven't tested bootstrapping this yet, especially on an "unknown" host.

NixOS (currently just WSL)

sudo nixos-install --flake github:evantravers/dotfiles#nixos

Darwin/Linux

nix run nix-darwin -- switch --flake github:evantravers/dotfiles

Update

NixOS

sudo nixos-rebuild switch --flake ~/src/github.com/evantravers/dotfiles

Darwin

darwin-rebuild switch --flake ~/src/github.com/evantravers/dotfiles

Home Manager

You could use something like this to import my home-manager standalone.

{ config, pkgs, ... }: {
  home-manager.users.evan = import ./home-manager/home.nix;
}