gate homebrew improt by darwin check to fix building on linux
This commit is contained in:
@@ -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
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user