mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 15:15:36 +00:00
3da886bf41
These are all packages that I stopped using and hence just create noise in my inbox for each change affecting them and let's face it, while I still enjoy contributing to nixpkgs, it doesn't really make sense to be listed there if I can't do much anyways. Each of these packages can be taken over by someone or removed if people think that's reasonable. Of course, if other maintainers face issues, I can answer some questions if needed & possible.
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
name = "xss-lock";
|
|
meta.maintainers = with pkgs.lib.maintainers; [ ];
|
|
|
|
nodes = {
|
|
simple = {
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
programs.xss-lock.enable = true;
|
|
test-support.displayManager.auto.user = "alice";
|
|
};
|
|
|
|
custom_lockcmd = { pkgs, ... }: {
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
test-support.displayManager.auto.user = "alice";
|
|
|
|
programs.xss-lock = {
|
|
enable = true;
|
|
extraOptions = [ "-n" "${pkgs.libnotify}/bin/notify-send 'About to sleep!'"];
|
|
lockerCommand = "${pkgs.xlockmore}/bin/xlock -mode ant";
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
def perform_xsslock_test(machine, lockCmd):
|
|
machine.start()
|
|
machine.wait_for_x()
|
|
machine.wait_for_unit("xss-lock.service", "alice")
|
|
machine.fail(f"pgrep {lockCmd}")
|
|
machine.succeed("su -l alice -c 'xset dpms force standby'")
|
|
machine.wait_until_succeeds(f"pgrep {lockCmd}")
|
|
|
|
|
|
with subtest("simple"):
|
|
perform_xsslock_test(simple, "i3lock")
|
|
|
|
with subtest("custom_cmd"):
|
|
perform_xsslock_test(custom_lockcmd, "xlock")
|
|
'';
|
|
})
|