summaryrefslogtreecommitdiff
path: root/tests/system-defaults-write.nix
blob: 3ba3ef5a9a000865872dc188f06c52a6e1c0e305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, pkgs, ... }:

{
  system.defaults.NSGlobalDomain.KeyRepeat = 1;
  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
  '';
}