v0.1.1
This commit is contained in:
parent
8b9d3c114d
commit
bcbd699c4c
11 changed files with 786 additions and 124 deletions
66
modules/darwin/homebrew.nix
Normal file
66
modules/darwin/homebrew.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
cfg = config.rsydn.homebrew;
|
||||
in {
|
||||
options.rsydn.homebrew = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Whether to manage Homebrew declaratively.";
|
||||
};
|
||||
taps = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = "Homebrew taps to add.";
|
||||
};
|
||||
brews = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [
|
||||
"curl"
|
||||
"yt-dlp"
|
||||
"nodejs"
|
||||
"charmbracelet/tap/crush"
|
||||
"sst/tap/opencode"
|
||||
"ruff"
|
||||
"libmagic"
|
||||
"ghostscript"
|
||||
"infisical"
|
||||
"fastfetch"
|
||||
];
|
||||
description = "Homebrew formulae to install.";
|
||||
};
|
||||
casks = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [
|
||||
"bitwarden"
|
||||
"chromium"
|
||||
"dbngin"
|
||||
"pgadmin14"
|
||||
"docker-desktop"
|
||||
"spotify"
|
||||
"discord"
|
||||
"obs"
|
||||
"neohtop"
|
||||
"orbstack"
|
||||
"visual-studio-code"
|
||||
"google-chrome@canary"
|
||||
"mactex"
|
||||
];
|
||||
description = "Homebrew casks to install.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
homebrew = {
|
||||
enable = true;
|
||||
global.autoUpdate = false;
|
||||
onActivation = {
|
||||
autoUpdate = false;
|
||||
cleanup = "zap";
|
||||
upgrade = false;
|
||||
};
|
||||
inherit (cfg) taps brews casks;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue