jacktrusler/dotfiles

github github
stars 2
issues 0
subscribers 1
forks 0
CREATED

UPDATED


dotfiles

Nix-managed configuration for macOS, NixOS, and Red Hat.

NixOS

Nix is the OS — no installation needed.

  1. Clone this repo (have to use nix-shell because nix doesn't ship with git):

    nix-shell -p git
    git clone https://github.com/json-bateman/dotfiles ~/dotfiles
    
  2. Apply the configuration:

    sudo nixos-rebuild switch --flake ~/dotfiles/nix#webserver --impure
    

This configures both the system and the user environment (via home-manager) in one command.


macOS - Initial Install

  1. Download Homebrew (find on homebrew website)
  2. Clone this repo
    git clone https://github.com/json-bateman/dotfiles ~/dotfiles
    
  3. Run the bootstrap script
    bash ~/dotfiles/bootstrap-mac.sh
    

Installs Homebrew, Nix, and applies home-manager. GUI apps (WezTerm, Spotify, Chrome, Telegram, Docker) are installed via Homebrew Cask.


Red Hat - Initial Install

sudo bash ~/dotfiles/bootstrap-redhat.sh

Sets up the system (packages, user, SSH hardening, mDNS), then prints next steps to install Nix and apply home-manager as your user.


Updating

Machine Command
NixOS webserver sudo nixos-rebuild switch --flake ~/dotfiles/nix#webserver --impure
macOS home-manager switch --flake ~/dotfiles/nix#mac
Red Hat home-manager switch --flake ~/dotfiles/nix#redhat