https://github.com/itsdalmo/dotfiles
My setup for development on OS X.
https://github.com/itsdalmo/dotfiles
Last synced: about 1 year ago
JSON representation
My setup for development on OS X.
- Host: GitHub
- URL: https://github.com/itsdalmo/dotfiles
- Owner: itsdalmo
- Created: 2016-07-31T13:36:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T14:02:05.000Z (about 2 years ago)
- Last Synced: 2024-05-22T15:17:33.188Z (about 2 years ago)
- Language: Lua
- Homepage:
- Size: 26.1 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
My setup for development on macOS (and NixOS).
## Installation
### MacOS
```sh
# 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
```sh
# 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)
```sh
# 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:
```sh
# Build the derivation
darwin-rebuild build --flake .#dalmobook
# Compare with the current system
nix store diff-closures /run/current-system ./result
```