mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
fix + tests
This commit is contained in:
parent
d7e67ce030
commit
1d8c5d9b79
2 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,7 @@ let
|
|||
|
||||
cfg = config.system.defaults;
|
||||
|
||||
isFloat = x: isString x && builtins.match "^[+-]?([1-9]*[.])?[0-9]+$" x != null;
|
||||
isFloat = x: isString x && builtins.match "^[+-]?([0-9]*[.])?[0-9]+$" x != null;
|
||||
|
||||
boolValue = x: if x then "YES" else "NO";
|
||||
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
|
||||
{
|
||||
system.defaults.NSGlobalDomain.KeyRepeat = 1;
|
||||
system.defaults.dock.autohide-delay = "0.24";
|
||||
system.defaults.dock.orientation = "left";
|
||||
|
||||
test = ''
|
||||
echo checking defaults write in /activate-user >&2
|
||||
grep "defaults write -g 'KeyRepeat' -int 1" ${config.out}/activate-user
|
||||
grep "defaults write com.apple.dock 'orientation' -string 'left'" ${config.out}/activate-user
|
||||
grep "defaults write com.apple.dock 'autohide-delay' -float 0.24" ${config.out}/activate-user
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue