-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
home-manager/darwin: convert to module
- Loading branch information
1 parent
ddf9b96
commit ee9628f
Showing
4 changed files
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
{ | ||
options.home-manager.darwin.enable = lib.mkEnableOption "Darwin config" // { | ||
default = pkgs.stdenv.isDarwin; | ||
}; | ||
|
||
config = lib.mkIf config.home-manager.darwin.enable { | ||
home-manager = { | ||
dev.enable = lib.mkDefault true; | ||
editor.emacs.enable = lib.mkDefault true; | ||
}; | ||
|
||
targets.darwin.defaults = { | ||
# Disable all automatic substitution | ||
NSGlobalDomain = { | ||
NSAutomaticCapitalizationEnabled = false; | ||
NSAutomaticDashSubstitutionEnabled = false; | ||
NSAutomaticPeriodSubstitutionEnabled = false; | ||
NSAutomaticQuoteSubstitutionEnabled = false; | ||
NSAutomaticSpellingCorrectionEnabled = false; | ||
}; | ||
# Do not write .DS_Store files outside macOS | ||
com.apple.desktopservices = { | ||
DSDontWriteNetworkStores = true; | ||
DSDontWriteUSBStores = true; | ||
}; | ||
# Disable mouse acceleration | ||
com.apple.mouse.scalling = -1; | ||
# com.apple.trackpad.scalling = -1; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
imports = [ | ||
../modules | ||
./cli | ||
./darwin.nix | ||
./desktop | ||
./dev | ||
./editor | ||
|
This file was deleted.
Oops, something went wrong.