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;