From 80204acfb6102053e78f65859357edea39c15a63 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Fri, 13 Feb 2026 18:27:31 -0600 Subject: [PATCH] nbula --- modules/darwin/nix/default.nix | 58 +++++++++++++++++++ modules/home/home/default.nix | 1 + .../aarch64-darwin/macbook-pro/homebrew.nix | 1 + 3 files changed, 60 insertions(+) create mode 100644 modules/darwin/nix/default.nix diff --git a/modules/darwin/nix/default.nix b/modules/darwin/nix/default.nix new file mode 100644 index 0000000..d38c5fb --- /dev/null +++ b/modules/darwin/nix/default.nix @@ -0,0 +1,58 @@ +{ + config, + lib, + namespace, + ... +}: +{ + nix = { + settings = { + # extra-sandbox-paths = [ config.programs.ccache.cacheDir ]; + substituters = [ + "http://jallen-nas.local:9012/nas-cache" + "https://nixos-apple-silicon.cachix.org" + "https://nixos-raspberrypi.cachix.org" + "https://nix-community.cachix.org" + "https://cache.nixos.org/" + ]; + trusted-public-keys = [ + "nas-cache:eK0eRVAt9QNwbkLIyOo9N5Z5+zi6ukI4mSlL196C7Yg=" + "nixos-apple-silicon.cachix.org-1:8psDu5SA5dAD7qA0zMy5UT292TxeEPzIz8VVEr2Js20=" + "nixos-raspberrypi.cachix.org-1:4iMO9LXa8BqhU+Rpg6LQKiGa2lsNh/j2oiYLNOQ5sPI=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + warn-dirty = lib.mkForce false; + experimental-features = lib.mkForce [ + "nix-command" + "flakes" + ]; + trusted-users = [ + "@wheel" + "@admin" + ]; + + builders-use-substitutes = true; + connect-timeout = lib.mkDefault 5; + fallback = true; + log-lines = lib.mkDefault 25; + + max-free = lib.mkDefault (3000 * 1024 * 1024); + min-free = lib.mkDefault (512 * 1024 * 1024); + }; + # Garbage collect automatically every week + gc = { + automatic = lib.mkDefault true; + options = lib.mkDefault "--delete-older-than 30d"; + }; + + optimise.automatic = lib.mkDefault true; + }; + + nixpkgs = { + config = { + cudaSupport = lib.mkDefault config.${namespace}.hardware.nvidia.enable; + rocmSupport = lib.mkDefault config.${namespace}.hardware.amd.enable; + allowUnsupportedSystem = true; + }; + }; +} diff --git a/modules/home/home/default.nix b/modules/home/home/default.nix index b197e4e..620b653 100644 --- a/modules/home/home/default.nix +++ b/modules/home/home/default.nix @@ -23,6 +23,7 @@ in deadnix lm_sensors nano + nebula nix-prefetch-scripts nixfmt pciutils diff --git a/systems/aarch64-darwin/macbook-pro/homebrew.nix b/systems/aarch64-darwin/macbook-pro/homebrew.nix index 0d2e3b1..747690d 100644 --- a/systems/aarch64-darwin/macbook-pro/homebrew.nix +++ b/systems/aarch64-darwin/macbook-pro/homebrew.nix @@ -30,6 +30,7 @@ "betterdisplay" "chromium" "discord" + "dnclient" "epic-games" "gstreamer-runtime" "iterm2"