This commit is contained in:
Niccolo Borgioli 2025-03-10 10:19:13 +01:00
parent 01b26805d5
commit 7958183ebe
2 changed files with 9 additions and 3 deletions

View File

@ -10,10 +10,16 @@ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Get repo
git clone https://github.com/cupcakearmy/nix-macos ~/.config/nix-darwin
git clone https://github.com/cupcakearmy/nix-macos ~/.config/nix-macos
# Unlock (Given that the base64 key is in your clipboard)
nix shell nixpkgs#git nixpkgs#git-crypt nixpkgs#coreutils
pbpaste | base64 --decode > .key
git-crypt unlock .key
# Installation
nix run nix-darwin -- switch --flake ~/.config/nix-darwin#mbp
# Available hosts can be found in the
nix run nix-darwin -- switch --flake ~/.config/nix-macos#<host>
```
## Crypt

View File

@ -45,7 +45,7 @@
e = "nvim";
g = "lazygit";
d = "lazydocker";
vai = "darwin-rebuild switch --flake ~/.config/nix-darwin#${host.hostName}";
vai = "darwin-rebuild switch --flake ~/.config/nix-macos#${host.hostName}";
};
};