mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
c95612a5a2
This module allows root autoLogin, so we would break that for users, but they shouldn't be using it anyways. This gives the impression like auto is some special display manager, when it's just lightdm and special pam rules to allow root autoLogin. It was created for NixOS's testing so I believe this is where it belongs.
25 lines
542 B
Nix
25 lines
542 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
name = "xautolock";
|
|
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ma27 ];
|
|
|
|
nodes.machine = {
|
|
imports = [ ./common/x11.nix ./common/user-account.nix ];
|
|
|
|
test-support.displayManager.auto.user = "bob";
|
|
services.xserver.xautolock.enable = true;
|
|
services.xserver.xautolock.time = 1;
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_x()
|
|
machine.fail("pgrep xlock")
|
|
machine.sleep(120)
|
|
machine.succeed("pgrep xlock")
|
|
'';
|
|
})
|