mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 12:00:14 +00:00
initial refactoring
This commit is contained in:
26
platforms/nix-darwin/modules/nmasur/profiles/base.nix
Normal file
26
platforms/nix-darwin/modules/nmasur/profiles/base.nix
Normal 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
|
||||
];
|
||||
|
||||
};
|
||||
}
|
22
platforms/nix-darwin/modules/nmasur/profiles/extra.nix
Normal file
22
platforms/nix-darwin/modules/nmasur/profiles/extra.nix
Normal 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
|
||||
];
|
||||
|
||||
};
|
||||
}
|
23
platforms/nix-darwin/modules/nmasur/profiles/gaming.nix
Normal file
23
platforms/nix-darwin/modules/nmasur/profiles/gaming.nix
Normal 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
|
||||
];
|
||||
|
||||
};
|
||||
}
|
24
platforms/nix-darwin/modules/nmasur/profiles/work.nix
Normal file
24
platforms/nix-darwin/modules/nmasur/profiles/work.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user