From 2edba6eac8ca0b94f3e41eb202b84b2ab23a84c3 Mon Sep 17 00:00:00 2001 From: nicco Date: Mon, 7 Jul 2025 17:26:37 +0200 Subject: [PATCH] enable cachex and fnm shortcut --- README.md | 5 ++--- cask.nix | 1 + darwin.nix | 7 +++++-- home/home.nix | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e862075..8eb9a0c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ ```bash # Install nix [without the --determinate flag] +# ⚠️ When asked if install the determinate version say no curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install # Install brew [for casks] @@ -19,7 +20,7 @@ git-crypt unlock .key # Installation # Available hosts can be found in the ./hosts directory -nix run nix-darwin -- switch --flake ~/.config/nix-macos# +sudo nix run nix-darwin -- switch --flake ~/.config/nix-macos# # After installation simply use the provided alias to rebuild vai @@ -55,5 +56,3 @@ Stuff that I would like to automate, but have not found a way/time - surfshark - ublock origin - vimium - - diff --git a/cask.nix b/cask.nix index e0e1258..d208ea9 100644 --- a/cask.nix +++ b/cask.nix @@ -18,6 +18,7 @@ "docker-desktop" "sloth" "vscodium" + "visual-studio-code" "bruno" "utm" "balenaetcher" diff --git a/darwin.nix b/darwin.nix index 651942d..7b655b6 100644 --- a/darwin.nix +++ b/darwin.nix @@ -6,8 +6,11 @@ ... }: { - # nix.enable = false; - nix.settings.experimental-features = "nix-command flakes"; + nix.settings = { + experimental-features = "nix-command flakes"; + substituters = [ "https://devenv.cachix.org" ]; + trusted-public-keys = [ "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" ]; + }; # Set Git commit hash for darwin-version. system.configurationRevision = flake.rev or flake.dirtyRev or null; diff --git a/home/home.nix b/home/home.nix index 6cb2905..26058b0 100644 --- a/home/home.nix +++ b/home/home.nix @@ -52,6 +52,7 @@ d = "lazydocker"; p = "pnpm"; px = "pnpm -s dlx"; + n = "fnm use --install-if-missing"; vai = "sudo darwin-rebuild switch --flake ~/.config/nix-macos#${host.hostName}"; };