mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
add test for system.defaults
This commit is contained in:
parent
406484b290
commit
f850f97550
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
12
tests/system-defaults-write.nix
Normal file
12
tests/system-defaults-write.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue