Skip to content

itsdalmo/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My setup for development on macOS (and NixOS).

Installation

MacOS

# Run the bootstrap script
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/itsdalmo/dotfiles/refs/heads/master/scripts/bootstrap_macos.sh)"

# Run the initial install
nix run nix-darwin -- switch --flake github:itsdalmo/dotfiles#dalmobook

# Afterwards we can use darwin-rebuild directly
darwin-rebuild switch --flake github:itsdalmo/dotfiles#dalmobook

After rebooting, complete the following manual steps:

  • System settings:
    • Displays > Night Shift > Schedule: Sunset to Sunrise
    • Sound > Show volume in menu bar
    • Enable "stacks" on the desktop.

NixOS

# Run the bootstrap script
nix-shell -p curl --run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/itsdalmo/dotfiles/refs/heads/master/scripts/bootstrap_nixos.sh)"

# Run the initial install with a reboot
nixos-rebuild boot --flake github:itsdalmo/dotfiles#nixos-vm && reboot

# Do normal rebuilds to update
sudo nixos-rebuild switch --flake github:itsdalmo/dotfiles#nixos-vm

VM (NixOS)

# Create the vm
./scripts/vm.sh create ~/Desktop/isos/nixos-minimal-24.05.6668.e8c38b73aeb2-aarch64-linux.iso

# Install nixos (after you have manually set the root password)
./scripts/vm.sh install

# Rebuild and reboot
./scripts/vm.sh rebuild-and-reboot

# Rebuild on updates
./scripts/vm.sh rebuild

Comparing generations

In order to compare generations we can first build the derivation and then look at the diff:

# Build the derivation
darwin-rebuild build --flake .#dalmobook

# Compare with the current system
nix store diff-closures /run/current-system ./result

About

My setup for development on OS X.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published