24 lines
501 B
Nix
24 lines
501 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
options.lumpiastyHome.brew = lib.mkEnableOption "Homebrew integration via home-manager-brew";
|
|
|
|
config = lib.mkMerge [
|
|
(lib.mkIf config.lumpiastyHome.brew {
|
|
homebrew = {
|
|
enable = true;
|
|
brewInstall = true;
|
|
update = true;
|
|
upgrade = true;
|
|
cleanup = true;
|
|
casks = [
|
|
"steam"
|
|
];
|
|
};
|
|
})
|
|
(lib.mkIf (!config.lumpiastyHome.brew) {
|
|
homebrew.enable = lib.mkForce false;
|
|
})
|
|
];
|
|
}
|