Skip to content

Commit

Permalink
fix: comment out defaults configs
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Aug 31, 2024
1 parent 9a44428 commit e8eac4b
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 114 deletions.
200 changes: 87 additions & 113 deletions profiles/thomas/programs/macos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,120 +19,94 @@ in
};

config = mkIf cfg.enable {
# homebrew = {
# taps = [
# "homebrew/cask"
# ];

# casks = [
# "swiftdefaultappsprefpane"
# ];

# brews = [
# "mas"
# ];

# masApps = {
# "Display Maid" = 450063525;
# "The Unarchiver" = 425424353;
# "Xcode" = 497799835;
# system = {
# defaults = {
# LaunchServices = {
# LSQuarantine = false;
# };

# NSGlobalDomain = {
# # AppleFontSmoothing = 2;
# # AppleKeyboardUIMode = 3;
# AppleMeasurementUnits = "Centimeters";
# AppleMetricUnits = 1;
# ApplePressAndHoldEnabled = true;
# AppleShowAllExtensions = false;
# AppleShowScrollBars = "Always";
# AppleTemperatureUnit = "Celsius";
# # InitialKeyRepeat = 1;
# # KeyRepeat = 1;
# NSAutomaticCapitalizationEnabled = false;
# NSAutomaticDashSubstitutionEnabled = false;
# NSAutomaticPeriodSubstitutionEnabled = false;
# NSAutomaticQuoteSubstitutionEnabled = false;
# NSAutomaticSpellingCorrectionEnabled = false;
# NSDisableAutomaticTermination = false;
# NSDocumentSaveNewDocumentsToCloud = false;
# NSNavPanelExpandedStateForSaveMode = true;
# NSNavPanelExpandedStateForSaveMode2 = true;
# NSScrollAnimationEnabled = false;
# NSTableViewDefaultSizeMode = 2;
# NSTextShowsControlCharacters = true;
# NSUseAnimatedFocusRing = false;
# # NSWindowResizeTime = 0.20;
# PMPrintingExpandedStateForPrint = true;
# PMPrintingExpandedStateForPrint2 = true;
# "com.apple.mouse.tapBehavior" = 1;
# "com.apple.swipescrolldirection" = true;
# "com.apple.trackpad.enableSecondaryClick" = true;
# "com.apple.trackpad.trackpadCornerClickBehavior" = 1;
# };

# SoftwareUpdate = {
# AutomaticallyInstallMacOSUpdates = true;
# };

# dock = {
# autohide = true;
# autohide-delay = 0.2;
# mineffect = "scale";
# show-recents = false;
# tilesize = 32;
# largesize = 64;
# magnification = true;

# wvous-tl-corner = 2;
# wvous-bl-corner = 3;
# wvous-tr-corner = 2;
# wvous-br-corner = 3;
# };

# finder = {
# AppleShowAllExtensions = false;
# FXEnableExtensionChangeWarning = false;
# QuitMenuItem = true;
# _FXShowPosixPathInTitle = true;
# };

# loginwindow = {
# DisableConsoleAccess = true;
# GuestEnabled = false;
# # LoginwindowText = "";
# PowerOffDisabledWhileLoggedIn = true;
# RestartDisabledWhileLoggedIn = true;
# ShutDownDisabledWhileLoggedIn = true;
# SHOWFULLNAME = true;
# };

# screencapture = {
# location = "${config.home.homeDirectory}/Pictures/Screenshots";
# };

# trackpad = {
# ActuationStrength = 1;
# Clicking = true;
# FirstClickThreshold = 1;
# SecondClickThreshold = 1;
# TrackpadRightClick = true;
# TrackpadThreeFingerDrag = true;
# };
# };
# };

home = {
packages = with pkgs; [
m-cli
];
};

system = {
defaults = {
LaunchServices = {
LSQuarantine = false;
};

NSGlobalDomain = {
# AppleFontSmoothing = 2;
# AppleKeyboardUIMode = 3;
AppleMeasurementUnits = "Centimeters";
AppleMetricUnits = 1;
ApplePressAndHoldEnabled = true;
AppleShowAllExtensions = false;
AppleShowScrollBars = "Always";
AppleTemperatureUnit = "Celsius";
# InitialKeyRepeat = 1;
# KeyRepeat = 1;
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
NSDisableAutomaticTermination = false;
NSDocumentSaveNewDocumentsToCloud = false;
NSNavPanelExpandedStateForSaveMode = true;
NSNavPanelExpandedStateForSaveMode2 = true;
NSScrollAnimationEnabled = false;
NSTableViewDefaultSizeMode = 2;
NSTextShowsControlCharacters = true;
NSUseAnimatedFocusRing = false;
# NSWindowResizeTime = 0.20;
PMPrintingExpandedStateForPrint = true;
PMPrintingExpandedStateForPrint2 = true;
"com.apple.mouse.tapBehavior" = 1;
"com.apple.swipescrolldirection" = true;
"com.apple.trackpad.enableSecondaryClick" = true;
"com.apple.trackpad.trackpadCornerClickBehavior" = 1;
};

SoftwareUpdate = {
AutomaticallyInstallMacOSUpdates = true;
};

dock = {
autohide = true;
autohide-delay = 0.2;
mineffect = "scale";
show-recents = false;
tilesize = 32;
largesize = 64;
magnification = true;

wvous-tl-corner = 2;
wvous-bl-corner = 3;
wvous-tr-corner = 2;
wvous-br-corner = 3;
};

finder = {
AppleShowAllExtensions = false;
FXEnableExtensionChangeWarning = false;
QuitMenuItem = true;
_FXShowPosixPathInTitle = true;
};

loginwindow = {
DisableConsoleAccess = true;
GuestEnabled = false;
# LoginwindowText = "";
PowerOffDisabledWhileLoggedIn = true;
RestartDisabledWhileLoggedIn = true;
ShutDownDisabledWhileLoggedIn = true;
SHOWFULLNAME = true;
};

screencapture = {
location = "${config.home.homeDirectory}/Pictures/Screenshots";
};

trackpad = {
ActuationStrength = 1;
Clicking = true;
FirstClickThreshold = 1;
SecondClickThreshold = 1;
TrackpadRightClick = true;
TrackpadThreeFingerDrag = true;
};
};
};
};
}
12 changes: 11 additions & 1 deletion shared/programs/brews.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ with lib;
environment = {
systemPackages = with pkgs; [
lazydocker
m-cli
pwgen
];
};

homebrew = {
taps = [
"webhippie/webhippie"
"homebrew/cask-versions"
"homebrew/cask"
"webhippie/webhippie"
];

casks = [
Expand Down Expand Up @@ -58,6 +60,7 @@ with lib;
"slack"
"stats"
"steam"
"swiftdefaultappsprefpane"
"telegram"
"temurin"
"temurin8"
Expand All @@ -69,9 +72,16 @@ with lib;
];

brews = [
"mas"
"mcrcon"
"yubikey-agent"
];

# masApps = {
# "Display Maid" = 450063525;
# "The Unarchiver" = 425424353;
# "Xcode" = 497799835;
# };
};
};
}

0 comments on commit e8eac4b

Please sign in to comment.