Skip to content

dotfiles and other configuration for initializing a new devenv (managed by nix)

Notifications You must be signed in to change notification settings

roshbhatia/sysinit

Repository files navigation

sysinit

          ▗▄▄▄       ▗▄▄▄▄    ▄▄▄▖
          ▜███▙       ▜███▙  ▟███▛
           ▜███▙       ▜███▙▟███▛
            ▜███▙       ▜██████▛
     ▟█████████████████▙ ▜████▛     ▟▙
    ▟███████████████████▙ ▜███▙    ▟██▙
           ▄▄▄▄▖           ▜███▙  ▟███▛
          ▟███▛             ▜██▛ ▟███▛
         ▟███▛               ▜▛ ▟███▛
▟███████████▛                  ▟██████████▙
▜██████████▛                  ▟███████████▛
      ▟███▛ ▟▙               ▟███▛
     ▟███▛ ▟██▙             ▟███▛
    ▟███▛  ▜███▙           ▝▀▀▀▀
    ▜██▛    ▜███▙ ▜██████████████████▛
     ▜▛     ▟████▙ ▜████████████████▛
           ▟██████▙       ▜███▙
          ▟███▛▜███▙       ▜███▙
         ▟███▛  ▜███▙       ▜███▙
         ▝▀▀▀    ▀▀▀▀▘       ▀▀▀▘

This comprises most of my dotfiles, managed (mostly) by nix.

Quick Start

Build and Apply Configuration

# First run needs the nix run, then can be ommited
nix run nixpkgs#nh -- darwin switch .
nh -- darwin switch .

Lima NixOS VM

# Start Lima VM
limactl start --name=$HOSTNAME lima.yaml

# Shell into the VM
limactl shell 

# First run needs the nix run, then can be ommited
nix run nixpkgs#nh os switch '.#nixosConfigurations.nostromo'
nh os switch '.#nixosConfigurations.nostromo'

CRITICAL: Do NOT run nh os switch from macOS to configure the Lima VM. You must run it from INSIDE the VM.

Creating a Discrete Host Repository

To create a separate repository that consumes this flake for host-specific configurations (i.e., work machine):

nix flake init -t github:roshbhatia/sysinit#discrete

Installing Neovim Configuration Only

curl -fsSL https://raw.githubusercontent.com/roshbhatia/sysinit/main/setup/neovim.sh | bash

About

dotfiles and other configuration for initializing a new devenv (managed by nix)

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors