From 7958183ebe49329e89b1bdd560bdb42d25ab71e4 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Mon, 10 Mar 2025 10:19:13 +0100 Subject: [PATCH] readme --- README.md | 10 ++++++++-- home/home.nix | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b5b2f36..dee1df1 100644 --- a/README.md +++ b/README.md @@ -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# ``` ## Crypt diff --git a/home/home.nix b/home/home.nix index b62a896..6d86c80 100644 --- a/home/home.nix +++ b/home/home.nix @@ -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}"; }; };