1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-16 21:38:21 +00:00
nix-darwin/tests/system-defaults-write.nix
2018-01-01 09:20:27 +09:00

14 lines
515 B
Nix

{ config, pkgs, ... }:
{
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
'';
}