1 import ./make-test-python.nix
6 meta.maintainers = with lib.maintainers; [
10 nodes.machine = { config, pkgs, lib, ... }: {
11 users.extraUsers.alice = { isNormalUser = true; };
12 programs.dconf = with lib.gvariant; {
14 profiles.user.databases = [
17 "test/not".locked = mkInt32 1;
18 "test/is".locked = "locked";
29 machine.succeed("test $(dconf read -d /test/not/locked) == 1")
30 machine.succeed("test $(dconf read -d /test/is/locked) == \"'locked'\"")
31 machine.fail("sudo -u alice dbus-run-session -- dconf write /test/is/locked \"@s 'unlocked'\"")
32 machine.succeed("sudo -u alice dbus-run-session -- dconf write /test/not/locked \"@i 2\"")