1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-08-16 08:00:34 +03:00

add test for system.defaults

This commit is contained in:
Daiderd Jordan 2017-05-14 01:00:29 +02:00
parent 406484b290
commit f850f97550
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 14 additions and 0 deletions

View File

@ -88,6 +88,8 @@ let
examples.lnl = genExample ./modules/examples/lnl.nix;
examples.simple = genExample ./modules/examples/simple.nix;
tests.system-defaults-write = makeTest ./tests/system-defaults-write.nix;
tests.system-packages = makeTest ./tests/system-packages.nix;
tests.system-path-bash = makeTest ./tests/system-path-bash.nix;
tests.system-path-fish = makeTest ./tests/system-path-fish.nix;

View File

@ -0,0 +1,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
'';
}