gate homebrew improt by darwin check to fix building on linux

This commit is contained in:
2026-09-11 01:22:57 +02:00
parent 93df208274
commit 6ed62f94db
4 changed files with 33 additions and 44 deletions
+6 -2
View File
@@ -1,6 +1,8 @@
{ flake, pkgs, lib, osConfig ? null, ... }:
{
options.lumpiastyHome.macos = lib.mkEnableOption "Macos specific things";
imports = [
./gpg.nix
./pc.nix
@@ -8,9 +10,11 @@
./gaming.nix
./fhsBash.nix
./linux.nix
] ++ lib.optionals (osConfig ? system.defaults) [
# Can't use config.lumpiastyHome.macos here — imports are evaluated before config,
# causing infinite recursion. osConfig ? system.defaults detects nix-darwin.
./macos.nix
./brew.nix
] ++ lib.optionals (osConfig.lumpiasty.enablePlasma) [
./plasma.nix
];
}
}