mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2025-09-05 18:30:39 +00:00
Merge pull request #2 from ordionary/main
enable cachex and fnm shortcut
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install nix [without the --determinate flag]
|
# 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
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
||||||
|
|
||||||
# Install brew [for casks]
|
# Install brew [for casks]
|
||||||
@@ -19,7 +20,7 @@ git-crypt unlock .key
|
|||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
# Available hosts can be found in the ./hosts directory
|
# 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
|
# After installation simply use the provided alias to rebuild
|
||||||
vai
|
vai
|
||||||
@@ -55,5 +56,3 @@ Stuff that I would like to automate, but have not found a way/time
|
|||||||
- surfshark
|
- surfshark
|
||||||
- ublock origin
|
- ublock origin
|
||||||
- vimium
|
- vimium
|
||||||
|
|
||||||
|
|
||||||
|
1
cask.nix
1
cask.nix
@@ -18,6 +18,7 @@
|
|||||||
"docker-desktop"
|
"docker-desktop"
|
||||||
"sloth"
|
"sloth"
|
||||||
"vscodium"
|
"vscodium"
|
||||||
|
"visual-studio-code"
|
||||||
"bruno"
|
"bruno"
|
||||||
"utm"
|
"utm"
|
||||||
"balenaetcher"
|
"balenaetcher"
|
||||||
|
@@ -6,8 +6,11 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
# nix.enable = false;
|
nix.settings = {
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
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.
|
# Set Git commit hash for darwin-version.
|
||||||
system.configurationRevision = flake.rev or flake.dirtyRev or null;
|
system.configurationRevision = flake.rev or flake.dirtyRev or null;
|
||||||
|
@@ -52,6 +52,7 @@
|
|||||||
d = "lazydocker";
|
d = "lazydocker";
|
||||||
p = "pnpm";
|
p = "pnpm";
|
||||||
px = "pnpm -s dlx";
|
px = "pnpm -s dlx";
|
||||||
|
n = "fnm use --install-if-missing";
|
||||||
|
|
||||||
vai = "sudo darwin-rebuild switch --flake ~/.config/nix-macos#${host.hostName}";
|
vai = "sudo darwin-rebuild switch --flake ~/.config/nix-macos#${host.hostName}";
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user