Skip to content

Commit

Permalink
refactor(nix-darwin): fix linting issues and avoid duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
lockejan committed Oct 13, 2024
1 parent 327b783 commit 4077fbb
Showing 1 changed file with 66 additions and 39 deletions.
105 changes: 66 additions & 39 deletions darwin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,46 +138,73 @@ in
# programs.gnupg.agent.enable = true;
# programs.gnupg.agent.enableSSHSupport = true;

system.defaults = {
dock.appswitcher-all-displays = false;
dock.autohide = true;
# dock.autohide-delay = 0.2;
dock.mru-spaces = false;
dock.orientation = "left";
dock.showhidden = true;
dock.wvous-bl-corner = 1;
dock.wvous-br-corner = 1;
dock.wvous-tl-corner = 2;
dock.wvous-tr-corner = 1;

finder.ShowPathbar = true;
finder.ShowStatusBar = true;
finder.FXPreferredViewStyle = "clmv";
loginwindow.GuestEnabled = false;
loginwindow.autoLoginUser = "${user}";
# ActivityMonitor.SortDirection = 0;

SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;

NSGlobalDomain.AppleMeasurementUnits = "Centimeters";
NSGlobalDomain.AppleShowAllExtensions = true;
# NSGlobalDomain.AppleShowScrollBars = "Always";
NSGlobalDomain.NSAutomaticCapitalizationEnabled = false;
NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = false;
NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
NSGlobalDomain.PMPrintingExpandedStateForPrint = true;
# NSGlobalDomain.com.apple.mouse.tapBehavior = 1;

LaunchServices.LSQuarantine = false;

trackpad.Clicking = true;
trackpad.TrackpadThreeFingerDrag = false;
};
system = {
defaults = {
dock = {
appswitcher-all-displays = true;
autohide = true;
# autohide-delay = 0.2;
mru-spaces = false;
orientation = "left";
showhidden = true;
wvous-bl-corner = 1;
wvous-br-corner = 1;
wvous-tl-corner = 2;
wvous-tr-corner = 1;
persistent-apps = [
"/System/Applications/System Settings.app"
"/System/Applications/Utilities/Activity Monitor.app"
"/Applications/Safari.app"
"/Applications/Brave Browser.app"
"/Applications/kitty.app"
"/Applications/Visual Studio Code.app"
"/Applications/Joplin.app"
];
persistent-others = [
"/Users/${user}/Downloads"
"/Users/${user}/Scratchpad"
"/Users/${user}/git"
];
};

finder = {
ShowStatusBar = true;
ShowPathbar = true;
FXPreferredViewStyle = "clmv";
};

loginwindow.GuestEnabled = false;
loginwindow.autoLoginUser = "${user}";
# ActivityMonitor.SortDirection = 0;

SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;

NSGlobalDomain = {
# AppleInterfaceStyle = "Dark";
AppleMeasurementUnits = "Centimeters";
AppleShowAllExtensions = true;
# AppleShowScrollBars = "Always";
NSAutomaticCapitalizationEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
NSDocumentSaveNewDocumentsToCloud = false;
NSNavPanelExpandedStateForSaveMode = true;
PMPrintingExpandedStateForPrint = true;
"com.apple.mouse.tapBehavior" = 1;
};

LaunchServices.LSQuarantine = false;

trackpad.Clicking = true;
trackpad.TrackpadThreeFingerDrag = false;
};

system.keyboard.enableKeyMapping = true;
system.keyboard.nonUS.remapTilde = true;
system.keyboard.remapCapsLockToControl = true;
keyboard =
{
enableKeyMapping = true;
nonUS.remapTilde = true;
remapCapsLockToControl = true;
};
};

# environment.etc."DefaultKeyBinding.dict".text = ''
# {
Expand Down

0 comments on commit 4077fbb

Please sign in to comment.