From dcca6430f24bf829f9b9e61a72e0ccd96811028b Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 5 Mar 2026 22:28:26 +0100 Subject: [PATCH] adds darwin config to nix --- modules/nix/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index b0a31c5..e942d6c 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -20,6 +20,32 @@ programs.nix-ld.enable = true; nixpkgs.config.allowUnfree = true; + environment.systemPackages = with pkgs; [ + nil + statix + manix + ]; + }; + + flake.modules.darwin.nix = + { pkgs, ... }: + { + programs.direnv = { + enable = true; + silent = false; + loadInNixShell = true; + direnvrcExtra = ""; + nix-direnv = { + enable = true; + }; + }; + + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; + nixpkgs.config.allowUnfree = true; + environment.systemPackages = with pkgs; [ nil statix