https://github.com/wuz/prst
dotfiles dotfiles-macos nix nix-darwin nix-dotfiles
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wuz/prst
- Owner: wuz
- Created: 2024-02-05T15:39:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T16:54:21.000Z (4 months ago)
- Last Synced: 2025-03-30T17:47:06.845Z (2 months ago)
- Language: Nix
- Size: 258 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `prst` - prestidigitate a dev env
[](https://nixos.org/) 
Magical system and home configuration using Nix.
## `configs/`
Any configuration files that are easier to write in another language or that
can't be easily configured in Nix.## `hosts/`
Host machines, by name.
- `spellbook` - MacBook Pro, mostly for work
## `modules/`
Modules for Nix configurations
- `home-manager/` - all the modules that are managed by home-manager
- `darwin/` - all the modules that require special configuration for Nix Darwin
- `nixos/` - all the modules that require special configuration for NixOS
- `shared/` - all the modules that are shared between configurations## `pkgs-wuz/`
Overlay for specific packages I use. In need of heavily modification, going to
be migrating to [`pog`](https://pog.gemologic.dev/) soon for scripts.## installing on Darwin
### install and configure nix
First, [install nix](https://nixos.org/download#nix-install-macos)
Then:```bash
# warlock's first nix config
mkdir -p ~/.config/nix/
echo -e 'max-jobs = auto\ntarball-ttl = 0\nexperimental-features = nix-command flakes' >>~/.config/nix/nix.conf# add current user as trusted
echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon
```### git this
```bash
git clone https://github.com/wuz/prst.git ~/.config/darwin
```### install tools
```bash
# change the name of the system configuration from `prst` to your hostname in flake.nixcd ~/.config/darwin
nix run nix-darwin -- switch --flake ~/.config/darwin
```