Skip to content

Commit

Permalink
feat: apply new structure for new macbook
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Aug 31, 2024
1 parent 0909144 commit e600bc4
Show file tree
Hide file tree
Showing 148 changed files with 2,884 additions and 2,020 deletions.
8 changes: 4 additions & 4 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repository:
name: workstation
description: Provisioning for my Macbook's with Nix
name: darwin-config
description: Provisioning for my MacBook's with Nix
topics: workstation, nix, nixpkgs, nix-darwin, home-manager

private: false
Expand All @@ -12,8 +12,8 @@ repository:

default_branch: master

allow_squash_merge: true
allow_merge_commit: true
allow_squash_merge: false
allow_merge_commit: false
allow_rebase_merge: true

labels:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/result

.direnv

!.envrc
9 changes: 0 additions & 9 deletions Makefile

This file was deleted.

85 changes: 10 additions & 75 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# workstation
# darwin-config

[![Build](https://github.com/tboerger/workstation/actions/workflows/build.yml/badge.svg)](https://github.com/tboerger/workstation/actions/workflows/build.yml)
[![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 based on [Nix][nix].
Provisioning for my MacBook's with [Nix][nix].

## Secrets

Expand All @@ -21,97 +21,32 @@ 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.

Generally 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.
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.

## Osiris
## Dagda

### Bootstrap

```console
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh <(curl -L https://nixos.org/nix/install)
echo "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf
reboot

nix \
--extra-experimental-features "nix-command flakes" \
build \
github:tboerger/workstation\#osiris \
github:tboerger/darwin-config\#dagda \
--no-write-lock-file

./result/sw/bin/darwin-rebuild switch \
--flake github:tboerger/workstation\#osiris
--flake github:tboerger/darwin-config\#dagda
```

### Updates

If the repository had been cloned you could just execute `make switch`,
otherwise there is still this long option to update the deployment:

```console
darwin-rebuild switch \
--flake github:tboerger/workstation\#osiris
```

## Hathor

### Bootstrap

```console
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh <(curl -L https://nixos.org/nix/install)
echo "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf
reboot

nix \
--extra-experimental-features "nix-command flakes" \
build \
github:tboerger/workstation\#hathor \
--no-write-lock-file

./result/sw/bin/darwin-rebuild switch \
--flake github:tboerger/workstation\#hathor
```

### Updates

If the repository had been cloned you could just execute `make switch`,
otherwise there is still this long option to update the deployment:

```console
darwin-rebuild switch \
--flake github:tboerger/workstation\#hathor
```

## Anubis

### Bootstrap

```console
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh <(curl -L https://nixos.org/nix/install)
echo "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf
reboot

nix \
--extra-experimental-features "nix-command flakes" \
build \
github:tboerger/workstation\#anubis \
--no-write-lock-file

./result/sw/bin/darwin-rebuild switch \
--flake github:tboerger/workstation\#anubis
```

### Updates

If the repository had been cloned you could just execute `make switch`,
otherwise there is still this long option to update the deployment:

```console
darwin-rebuild switch \
--flake github:tboerger/workstation\#anubis
--flake github:tboerger/darwin-config\#dagda
```

## Security
Expand Down
148 changes: 116 additions & 32 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e600bc4

Please sign in to comment.