1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

fix + tests

This commit is contained in:
pjan vandaele 2018-01-01 09:20:27 +09:00
parent d7e67ce030
commit 1d8c5d9b79
2 changed files with 3 additions and 1 deletions

View file

@ -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";

View file

@ -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
'';
}