mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2025-09-03 17:30:39 +00:00
enable cachex and fnm shortcut
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
1
cask.nix
1
cask.nix
@@ -18,6 +18,7 @@
|
||||
"docker-desktop"
|
||||
"sloth"
|
||||
"vscodium"
|
||||
"visual-studio-code"
|
||||
"bruno"
|
||||
"utm"
|
||||
"balenaetcher"
|
||||
|
@@ -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;
|
||||
|
@@ -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}";
|
||||
};
|
||||
|
Reference in New Issue
Block a user