darwin modules

This commit is contained in:
mjallen18
2025-11-19 21:54:01 -06:00
parent c0dbceefb9
commit 5e4d16297e
9 changed files with 434 additions and 292 deletions

View File

@@ -7,7 +7,7 @@
./homebrew.nix
./programs.nix
./system.nix
# ./settings.nix
./settings.nix
];
# List packages installed in system profile. To search by name, run:

View File

@@ -10,15 +10,6 @@
enable = true;
};
ssh.knownHosts = {
desktop = {
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTBMydhOc6SnOdB5WrEd7X07DrboAtagCUgXiOJjLov matt@matt-nixos";
};
nas = {
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIwoHWOLSTGVif9hAhaMLl0qDA4roIzCNuyR6kyIXDOj admin@jallen-nas";
};
};
zsh.enable = true; # default shell on catalina
};
}

View File

@@ -1,142 +1,10 @@
{ ... }:
{
nix-plist-manager = {
systemSettings = {
appearance = {
appearance = "Dark";
accentColor = "Multicolor";
};
sidebarIconSize = "Medium";
# allowWallpaperTintingInWindows = true;
showScrollBars = "Automatically based on mouse or trackpad";
clickInTheScrollBarTo = "Jump to the next page";
controlCenter = {
wifi = true;
bluetooth = true;
airdrop = true;
stageManager = true;
focusModes = "active";
screenMirroring = "active";
display = "never";
sound = "always";
nowPlaying = "active";
accessibilityShortcuts = {
showInMenuBar = false;
showInControlCenter = false;
};
musicRecognition = {
showInMenuBar = false;
showInControlCenter = false;
};
hearing = {
showInMenuBar = false;
showInControlCenter = true;
};
fastUserSwitching = {
showInMenuBar = true;
showInControlCenter = false;
};
keyboardBrightness = {
showInMenuBar = false;
showInControlCenter = true;
};
battery = {
showInMenuBar = true;
showInControlCenter = true;
};
batteryShowPercentage = true;
menuBarOnly = {
spotlight = false;
siri = true;
};
automaticallyHideAndShowTheMenuBar = "In Full Screen Only";
};
desktopAndDock = {
dock = {
size = 64; # 16 - 128
magnification.enabled = false;
positionOnScreen = "Bottom";
minimizeWindowsUsing = "Genie Effect";
doubleClickAWindowsTitleBarTo = "Minimize";
minimizeWindowsIntoApplicationIcon = true;
automaticallyHideAndShowTheDock.enabled = false;
animateOpeningApplications = true;
showIndicatorsForOpenApplications = true;
showSuggestedAndRecentAppsInDock = false;
persistentApps = [
{ app = "/Applications/Clock.app"; }
{ folder = "/Applications"; }
{ app = "/Applications/Safari.app"; }
{ app = "/Applications/Firefox.app"; }
{ app = "/Applications/Tabby.app"; }
{ app = "/Applications/Termius.app"; }
{ app = "/Applications/Muic.app"; }
{ app = "/Applications/Vesktop.app"; }
{ app = "/Applications/Messages.app"; }
{ app = "/Applications/Calendar.app"; }
{ app = "/Applications/Reminders.app"; }
{ app = "/Applications/Notes.app"; }
{ app = "/Applications/Weather.app"; }
{ app = "/Applications/Maps.app"; }
{ app = "/Applications/App Store.app"; }
{ app = "/Applications/System Settings.app"; }
{ app = "/Applications/ChatGPT.app"; }
{ app = "/Applications/Nextcloud.app"; }
{ app = "/Applications/VSCodium.app"; }
{ app = "/Applications/Omnissa Horizon Client.app"; }
{ app = "/Applications/Proton Pass.app"; }
{ app = "/Applications/OrcaSlicer.app"; }
{ app = "/Applications/AlDente.app"; }
];
persistentOthers = [
"~/Downloads"
];
};
desktopAndStageManager = {
showItems = {
onDesktop = true;
inStageManager = false;
};
clickWallpaperToRevealDesktop = "Always";
stageManager = true;
showRecentAppsInStageManager = true;
showWindowsFromAnApplication = "All at Once";
widgets = {
showWidgets = {
onDesktop = true;
inStageManager = true;
};
widgetStyle = "Automatic";
useIphoneWidgets = true;
};
windows = {
preferTabsWhenOpeningDocuments = "inFullscreen";
askToKeepChangesWhenClosingDocuments = true;
closeWindowsWhenQuittingAnApplication = true;
dragWindowsToScreenEdgesToTile = true;
dragWindowsToMenuBarToFillScreen = true;
holdOptionKeyWhileDraggingWindowsToTile = true;
tiledWindowsHaveMargin = false;
};
missionControl = {
automaticallyRearrangeSpacesBasedOnMostRecentUse = true;
whenSwitchingToAnApplicationSwitchToAspaceWithOpenWindowsForTheApplication = true;
groupWindowsByApplication = true;
displaysHaveSeparateSpaces = true;
dragWindowsToTopOfScreenToEnterMissionControl = true;
hotCorners = {
# ["-" "Mission Control" "Application Windows" "Desktop" "Start Screen Saver" "Disable Screen Saver" "Dashboard" "Put Display to Sleep" "Launchpad" "Notification Center" "Lock Screen" "Quick Note"]
topLeft = "-";
topRight = "-";
bottomLeft = "-";
bottomRight = "-";
};
};
};
};
focus = {
shareAcrossDevices = true;
};
services.nix-plist-manager = {
enable = true;
options = {
applications.systemSettings = {
# # allowWallpaperTintingInWindows = true;
general = {
softwareUpdate = {
automaticallyDownloadNewUpdatesWhenAvailable = true;
@@ -144,108 +12,31 @@
automaticallyInstallApplicationUpdatesFromTheAppStore = false;
automaticallyInstallSecurityResponseAndSystemFiles = true;
};
dateAndTime = {
setTimeAndDateAutomatically = true;
"24HourTime" = false;
show24HourTimeOnLockScreen = false;
setTimeZoneAutomaticallyUsingCurrentLocation = true;
};
keyboard = {
keyRepeatRate = 6; # 1-7
keyRepeatDelay = 4; # 1-6
adjustKeyboardBrightnessInLowLight = true;
keyboardBrightness = 0.5;
turnKeyboardBacklightOffAfterInactivity = "Never";
pressGlobeKeyTo = "Show Emoji & Symbols";
keyboardNavigation = false;
useF1F2EtcAsStandardFunctionKeys = false;
dictation.enabled = false;
};
};
notifications = {
notificationCenter = {
showPreviews = "When Unlocked";
summarizeNotifications = true;
};
};
sound = {
soundEffects = {
alertSound = "Boop";
alertVolume = 0.7;
playUserInterfaceSoundEffects = true;
playFeedbackWhenVolumeIsChanged = true;
};
};
spotlight = {
searchResults = {
applications = true;
calculator = true;
contacts = true;
conversion = true;
definition = true;
developer = true;
documents = true;
eventsAndReminders = true;
folders = true;
fonts = false;
images = true;
mailAndMessages = true;
movies = true;
music = true;
other = false;
pdfDocuments = true;
presentations = true;
siriSuggestions = false;
systemSettings = true;
tips = false;
websites = true;
helpAppleImproveSearch = false;
};
};
trackpad = {
trackingSpeed = 4;
click = "Medium";
forceClickAndHapticFeedback = true;
tapToClick = true;
# dateAndTime = {
# # setTimeAndDateAutomatically = true;
# "24HourTime" = "System";
# # show24HourTimeOnLockScreen = false;
# # setTimeZoneAutomaticallyUsingCurrentLocation = true;
# };
# keyboard = {
# keyRepeatRate = 6; # 1-7
# keyRepeatDelay = 4; # 1-6
# adjustKeyboardBrightnessInLowLight = true;
# keyboardBrightness = 0.5;
# turnKeyboardBacklightOffAfterInactivity = "Never";
# pressGlobeKeyTo = "Show Emoji & Symbols";
# keyboardNavigation = false;
# useF1F2EtcAsStandardFunctionKeys = false;
# dictation.enabled = false;
# };
};
# trackpad = {
# trackingSpeed = 4;
# click = "Medium";
# forceClickAndHapticFeedback = true;
# tapToClick = true;
# };
};
applications = {
finder = {
settings = {
general = {
showTheseItemsOnTheDesktop = {
hardDisks = true;
externalDisks = true;
cdsDvdsAndiPods = false;
connectedServers = false;
};
openFoldersInTabsInsteadOfNewWindows = true;
};
sidebar = {
recentTags = true;
};
advanced = {
removeItemsFromTheTrashAfter30Days = true;
showAllFilenameExtensions = true;
showWarningBeforeChangingAnExtension = true;
showWarningBeforeRemovingFromiCloudDrive = true;
showWarningBeforeEmptyingTheTrash = true;
keepFoldersOnTop = {
inWindowsWhenSortingByName = true;
onDesktop = true;
};
whenPerformingASearch = "Search This Mac";
};
};
menuBar = {
view = {
showTabBar = true;
showSidebar = true;
showPathBar = true;
showStatusBar = true;
};
};
};
};
};
}