From 9cd9e2ef31fb868634d71f24abdd33867c0abbda Mon Sep 17 00:00:00 2001 From: isabel Date: Wed, 26 Feb 2025 12:32:04 +0000 Subject: [PATCH] feat(darwin): init previously it made no sense to add this since we didn't support any darwin modules but now we have the global `cache.enable` and some users may want to set it in a "shared" module between nixos and darwin --- flake.nix | 5 +++++ modules/darwin/all-modules.nix | 1 + modules/darwin/default.nix | 9 +++++++++ 3 files changed, 15 insertions(+) create mode 100644 modules/darwin/all-modules.nix create mode 100644 modules/darwin/default.nix diff --git a/flake.nix b/flake.nix index 4e30afb7..1acce09d 100644 --- a/flake.nix +++ b/flake.nix @@ -70,5 +70,10 @@ type = "nixos"; file = ./modules/nixos; }; + + darwinModules.catppuccin = mkModule { + type = "darwin"; + file = ./modules/darwin; + }; }; } diff --git a/modules/darwin/all-modules.nix b/modules/darwin/all-modules.nix new file mode 100644 index 00000000..1e3ec721 --- /dev/null +++ b/modules/darwin/all-modules.nix @@ -0,0 +1 @@ +[ ] diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix new file mode 100644 index 00000000..11a3e9db --- /dev/null +++ b/modules/darwin/default.nix @@ -0,0 +1,9 @@ +{ lib, ... }: + +{ + _class = "darwin"; + + imports = [ + (lib.modules.importApply ../global.nix { catppuccinModules = import ./all-modules.nix; }) + ]; +}