initial refactoring

This commit is contained in:
Noah Masur
2025-01-20 22:35:40 -05:00
parent a4b5e05f8f
commit c7933f8502
209 changed files with 5998 additions and 5308 deletions

View File

@ -0,0 +1,26 @@
{
config,
lib,
...
}:
let
cfg = config.nmasur.profiles.base;
in
{
options.nmasur.profiles.base.enable = lib.mkEnableOption "base macOS config";
config = lib.mkIf cfg.enable {
homebrew.brews = lib.mkDefault [
"trash" # Delete files and folders to trash instead of rm
];
homebrew.casks = lib.mkDefault [
"scroll-reverser" # Different scroll style for mouse vs. trackpad
"notunes" # Don't launch Apple Music with the play button
];
};
}

View File

@ -0,0 +1,22 @@
{
config,
lib,
...
}:
let
cfg = config.nmasur.profiles.gaming;
in
{
options.nmasur.profiles.gaming.enable = lib.mkEnableOption "extra config for macOS";
config = lib.mkIf cfg.enable {
homebrew.casks = lib.mkDefault [
"keybase" # GUI on Nix not available for macOS
];
};
}

View File

@ -0,0 +1,23 @@
{
config,
lib,
...
}:
let
cfg = config.nmasur.profiles.gaming;
in
{
options.nmasur.profiles.gaming.enable = lib.mkEnableOption "gaming config for macOS";
config = lib.mkIf cfg.enable {
homebrew.casks = lib.mkDefault [
"steam" # Not packaged for Nixon macOS
"epic-games" # Not packaged for Nix
];
};
}

View File

@ -0,0 +1,24 @@
{
config,
lib,
...
}:
let
cfg = config.nmasur.profiles.work;
in
{
options.nmasur.profiles.work.enable = lib.mkEnableOption "work machine";
config = lib.mkIf cfg.enable {
homebrew.casks = [
"1password" # 1Password will not launch from Nix on macOS
# "gitify" # Git notifications in menu bar (downgrade manually from 4.6.1)
# "logitech-g-hub" # Mouse and keyboard management
"logitune" # Logitech webcam firmware
"meetingbar" # Show meetings in menu bar
];
};
}