about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--darwin/default.nix8
-rw-r--r--darwin/delta/configuration.nix18
-rw-r--r--flake.nix2
3 files changed, 28 insertions, 0 deletions
diff --git a/darwin/default.nix b/darwin/default.nix
new file mode 100644
index 0000000..babf824
--- /dev/null
+++ b/darwin/default.nix
@@ -0,0 +1,8 @@
+{ self, unstable, ... }:
+
+{
+  delta = self.lib.mkDarwin {
+    name = "delta";
+    nixpkgs = unstable;
+  };
+}
diff --git a/darwin/delta/configuration.nix b/darwin/delta/configuration.nix
new file mode 100644
index 0000000..5ce8eb0
--- /dev/null
+++ b/darwin/delta/configuration.nix
@@ -0,0 +1,18 @@
+{ pkgs, ... }:
+
+{
+  homebrew = {
+    enable = true;
+    brews = [
+      # Thunderbird requires GPGME in 'standard locations'
+      "gpgme"
+    ];
+  };
+
+  # Necessary for using flakes on this system.
+  nix.settings.experimental-features = "nix-command flakes";
+
+  # $ darwin-rebuild changelog
+  system.stateVersion = 5;
+  nixpkgs.hostPlatform = "aarch64-darwin";
+}
diff --git a/flake.nix b/flake.nix
index f334314..67e1701 100644
--- a/flake.nix
+++ b/flake.nix
@@ -57,6 +57,8 @@
 
       nixosConfigurations = import ./nixos inputs;
 
+      darwinConfigurations = import ./darwin inputs;
+
       homeConfigurations = import ./home inputs;
 
       colmena = self.lib.mkColmenaFromNixOSConfigurations self.nixosConfigurations;