Fixes on Darwin

Do not use local cache for Darwin systems
Update darwin flakes
Simplify some extra syntax
This commit is contained in:
Greg Hellings
2024-05-20 10:51:03 -05:00
committed by greg-compass
parent 1b88076d97
commit a6de268c78
2 changed files with 16 additions and 16 deletions
+7 -7
View File
@@ -1,4 +1,7 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
notDarwin = (! pkgs.stdenv.isDarwin);
in
{
# Enable flakes
nix = {
@@ -15,8 +18,7 @@
keep-derivations = true;
min-free = (toString (1024 * 1024 * 1024) );
max-free = (toString (5 * 1024 * 1024 * 1024) );
substituters = [
"http://nixcache.home"
substituters = (lib.optional notDarwin [ "http://nixcache.home" ]) ++ [
"https://cache.garnix.io"
"https://ai.cachix.org"
];
@@ -32,8 +34,7 @@
};
# Base packages that need to be in all my hosts
environment.systemPackages = with pkgs; (
[
environment.systemPackages = with pkgs; [
agenix
android-file-transfer
bitwarden-cli
@@ -56,6 +57,5 @@
transcrypt
unzip
wget
]
);
];
}