From 3ab1648f501cc7f2b42b60b2218ccfa10a4280d0 Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Sat, 27 Dec 2025 21:37:17 -0500 Subject: [PATCH] Add flake-parts module --- flake-module.nix | 11 +++++++++++ flake.nix | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 flake-module.nix diff --git a/flake-module.nix b/flake-module.nix new file mode 100644 index 0000000..d59c4ee --- /dev/null +++ b/flake-module.nix @@ -0,0 +1,11 @@ +{ + lib, + ... +}: +{ + options.flake.darwinConfigurations = lib.mkOption { + type = lib.types.lazyAttrsOf lib.types.raw; + default = { }; + description = "Darwin system configurations"; + }; +} diff --git a/flake.nix b/flake.nix index cfd249c..56e9918 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,8 @@ darwin-uninstaller = prev.callPackage ./pkgs/darwin-uninstaller { }; }; + flakeModules.default = ./flake-module.nix; + darwinModules.hydra = ./modules/examples/hydra.nix; darwinModules.lnl = ./modules/examples/lnl.nix; darwinModules.simple = ./modules/examples/simple.nix;