nix: start darwin configuration

preparation for macOS
This commit is contained in:
Nico 2025-05-03 16:15:58 +10:00
parent b6f830297b
commit 3d70922a85
7 changed files with 213 additions and 1 deletions

View file

@ -0,0 +1,48 @@
{ config, lib, pkgs, ... }:
{
# dock
system.defaults.dock.autohide = true;
system.defaults.dock.autohide-delay = 0.2;
system.defaults.dock.autohide-time-modifier = 0.2;
system.defaults.dock.mineffect = "scale";
system.defaults.dock.orientation = "left";
system.defaults.dock.show-recents = true;
system.defaults.dock.tilesize = 48;
system.defaults.dock.persistent-apps = [
"${pkgs.firefox}/Applications/Firefox.app"
"${pkgs.kitty}/Applications/Kitty.app"
"/System/Applications/Finder.app"
];
# finder
system.defaults.finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
FXEnableExtensionChangeWarning = false;
FXPreferredViewStyle = "clmv";
FXRemoveOldTrashItems = true;
NewWindowTarget = "Home";
ShowStatusBar = true;
_FXShowPosixPathInTitle = true;
_FXSortFoldersFirst = true;
CreateDesktop = true; # desktop icons
ShowHardDrivesOnDesktop = true;
ShowExternalHardDrivesOnDesktop = true;
ShowMountedServersOnDesktop = true;
ShowRemovableMediaOnDesktop = true;
};
# activity monitor
system.defaults.ActivityMonitor = {
IconType = 0;
OpenMainWindow = true;
ShowCategory = 100;
SortColumn = "CPUUsage";
SortDirection = 0;
};
# hotkey daemon
services.skhd.enable = true;
}