From 40c93873781a7c950361afb2a56c7749180cfb61 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Tue, 14 Mar 2023 19:23:32 +0000
Subject: [PATCH] configuration-darwin: init

---
 configuration-darwin.nix | 15 +++++++++++++++
 flake.nix                |  7 ++-----
 2 files changed, 17 insertions(+), 5 deletions(-)
 create mode 100644 configuration-darwin.nix

diff --git a/configuration-darwin.nix b/configuration-darwin.nix
new file mode 100644
index 00000000..3c03b8db
--- /dev/null
+++ b/configuration-darwin.nix
@@ -0,0 +1,15 @@
+{ pkgs, haskellLib }:
+
+with pkgs.haskell.lib;
+
+final: prev: {
+
+  alsa-core = null;
+
+  alsa-mixer = null;
+
+  iwlib = null;
+
+  libsystemd-journal = null;
+}
+
diff --git a/flake.nix b/flake.nix
index 0e95a926..31d48483 100644
--- a/flake.nix
+++ b/flake.nix
@@ -61,7 +61,7 @@
             compilerConfig = pkgs.callPackage ./configuration-ghc.nix { inherit haskellLib; };
             configurationArm = { pkgs, haskellLib }: self: super: { };
             configurationCommon = import ./configuration.nix;
-            configurationDarwin = { pkgs, haskellLib }: self: super: { };
+            configurationDarwin = import ./configuration-darwin.nix;
             configurationNix = { pkgs, haskellLib }: self: super: { };
             ghc = pkgs.haskell.compiler.ghc944;
             inherit haskellLib;
@@ -118,10 +118,7 @@
             inherit inputs pkgs;
             modules = [
               ({ pkgs, ... }: {
-                packages = [
-                  horizon-gen-nix
-                  pkgs.nixpkgs-fmt
-                ];
+                packages = [ horizon-gen-nix pkgs.nixpkgs-fmt ];
               })
             ];
           };
-- 
GitLab