removed darwin outputs

This commit is contained in:
elwrcl committed 2026-10-26 10:43:13 +03:00
1 parent c91229b05e
commit 2c0dced126
2 files changed
-43

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
{ lib, ... }:
{
options.flake.darwinModules = lib.mkOption {
type = lib.types.lazyAttrsOf lib.types.deferredModule;
default = { };
description = "Darwin module pool (symmetric with flake.nixosModules).";
};
}
-35
View File
@@ -1,35 +0,0 @@
{
config,
lib,
moduleLocation,
...
}:
let
inherit (lib.attrsets) mapAttrs;
inherit (lib.lists) singleton;
inherit (lib.modules) mkMerge;
inherit (lib.options) mkOption;
inherit (lib.types) deferredModule lazyAttrsOf;
wrap =
kind: name: value:
let
file = "${toString moduleLocation}#${kind}.${name}";
in
{
_file = file;
key = file;
imports = singleton value;
};
in
{
options.commonModules = mkOption {
type = lazyAttrsOf deferredModule;
default = { };
apply = mapAttrs (wrap "commonModules");
description = "NixOS and Darwin modules shared between both platforms.";
};
config.flake.nixosModules = mkMerge [ config.commonModules ];
config.flake.darwinModules = mkMerge [ config.commonModules ];
}