enable cachex and fnm shortcut

This commit is contained in:
nicco
2025-07-07 17:26:37 +02:00
parent ed7696d7a3
commit 2edba6eac8
4 changed files with 9 additions and 5 deletions

View File

@@ -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#<host>
sudo nix run nix-darwin -- switch --flake ~/.config/nix-macos#<host>
# 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

View File

@@ -18,6 +18,7 @@
"docker-desktop"
"sloth"
"vscodium"
"visual-studio-code"
"bruno"
"utm"
"balenaetcher"

View File

@@ -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;

View File

@@ -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}";
};