Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/workstation-mac-defaults-contract.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.runCommand "workstation-mac-defaults-contract" {
nativeBuildInputs = [ pkgs.gnugrep ];
} ''
test -f ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q "enable-hot-corners false" ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q "clock-format '12h'" ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q "locate-pointer true" ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q "click-policy 'double'" ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q "show-delete-permanently true" ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q "favorite-apps" ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q 'set_custom_binding custom1 "SourceOS Files"' ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
grep -q 'set_custom_binding custom2 "SourceOS Terminal"' ${../profiles/linux-dev/workstation-v0/gnome/mac-defaults.sh}
mkdir -p $out
echo validated > $out/result.txt
''
Loading