mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
add option to show hidden files everywhere
This commit is contained in:
parent
d61d8b3bd0
commit
37e42a9fe4
2 changed files with 10 additions and 0 deletions
|
@ -15,6 +15,14 @@ let
|
|||
in {
|
||||
options = {
|
||||
|
||||
system.defaults.NSGlobalDomain.AppleShowAllFiles = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
Whether to always show hidden files. The default is false.
|
||||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain.AppleEnableMouseSwipeNavigateWithScrolls = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
system.defaults.NSGlobalDomain.AppleShowAllFiles = true;
|
||||
system.defaults.NSGlobalDomain.AppleEnableMouseSwipeNavigateWithScrolls = false;
|
||||
system.defaults.NSGlobalDomain.AppleEnableSwipeNavigateWithScrolls = false;
|
||||
system.defaults.NSGlobalDomain.AppleFontSmoothing = 1;
|
||||
|
@ -49,6 +50,7 @@
|
|||
grep "defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server 'ServerDescription' -string 'Darwin.*s iMac'" ${config.out}/activate
|
||||
|
||||
echo >&2 "checking defaults write in /activate-user"
|
||||
grep "defaults write -g 'AppleShowAllFiles' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'AppleEnableMouseSwipeNavigateWithScrolls' -bool NO" ${config.out}/activate-user
|
||||
grep "defaults write -g 'AppleEnableSwipeNavigateWithScrolls' -bool NO" ${config.out}/activate-user
|
||||
grep "defaults write -g 'AppleFontSmoothing' -int 1" ${config.out}/activate-user
|
||||
|
|
Loading…
Add table
Reference in a new issue