Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tboerger/darwin-config
Provisioning for my MacBook's with Nix
https://github.com/tboerger/darwin-config
home-manager nix nix-darwin nixpkgs workstation
Last synced: 3 months ago
JSON representation
Provisioning for my MacBook's with Nix
- Host: GitHub
- URL: https://github.com/tboerger/darwin-config
- Owner: tboerger
- License: apache-2.0
- Created: 2013-10-15T13:08:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-20T07:05:57.000Z (5 months ago)
- Last Synced: 2024-10-03T06:09:51.478Z (4 months ago)
- Topics: home-manager, nix, nix-darwin, nixpkgs, workstation
- Language: Nix
- Homepage:
- Size: 6.75 MB
- Stars: 12
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# darwin-config
[![Build](https://github.com/tboerger/darwin-config/actions/workflows/build.yml/badge.svg)](https://github.com/tboerger/darwin-config/actions/workflows/build.yml)
Provisioning for my MacBook's with [Nix][nix].
## Secrets
Generally all secrets are encrypted with [agenix][agenix], so make sure to copy
the SSH keys from the `secrets` stick with these commands:```console
mkdir -p $HOME/.ssh
cp /Volumes/secrets/ssh/id_* $HOME/.ssh/
chmod u=rw,g=,o= $HOME/.ssh/id_*
```## Prepare
Generally we disable SIP, just boot into the recovery system and open a terminal
to execute `csrutil disable`, after rebooting into the regular system you can
check with `csrutil status` if it's still disabled.It's a good idea to install all apps from the store which have been bought,
especially Xcode, otherwise it fails to build macOS applications.## Dagda
### Bootstrap
```console
softwareupdate --install-rosetta --agree-to-license
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh <(curl -L https://nixos.org/nix/install)
rebootnix \
--extra-experimental-features "nix-command flakes" \
build \
github:tboerger/darwin-config\#dagda \
--no-write-lock-file./result/sw/bin/darwin-rebuild switch \
--flake github:tboerger/darwin-config\#dagda
```### Updates
```console
darwin-rebuild switch \
--flake github:tboerger/darwin-config\#dagda
```## Security
If you find a security issue please contact [email protected] first.
## Contributing
Fork -> Patch -> Push -> Pull Request
## Authors
- [Thomas Boerger](https://github.com/tboerger)
## License
Apache-2.0
## Copyright
```console
Copyright (c) 2021 Thomas Boerger
```[nix]: https://nixos.org/manual/nix/stable/
[agenix]: https://github.com/ryantm/agenix