nixos/tests/common/auto.nix: get rid of `with lib`

Changed files
+3 -16
nixos
tests
common
+3 -16
nixos/tests/common/auto.nix
···
{ config, lib, ... }:
-
with lib;
-
let
-
dmcfg = config.services.xserver.displayManager;
cfg = config.test-support.displayManager.auto;
-
in
-
{
###### interface
options = {
-
test-support.displayManager.auto = {
-
-
enable = mkOption {
default = false;
description = lib.mdDoc ''
Whether to enable the fake "auto" display manager, which
···
'';
};
-
user = mkOption {
default = "root";
description = lib.mdDoc "The user account to login automatically.";
};
-
};
-
};
-
###### implementation
-
config = mkIf cfg.enable {
-
services.xserver.displayManager = {
lightdm.enable = true;
autoLogin = {
···
session include lightdm
'';
-
};
-
}
···
{ config, lib, ... }:
let
dmcfg = config.services.xserver.displayManager;
cfg = config.test-support.displayManager.auto;
in
{
###### interface
options = {
test-support.displayManager.auto = {
+
enable = lib.mkOption {
default = false;
description = lib.mdDoc ''
Whether to enable the fake "auto" display manager, which
···
'';
};
+
user = lib.mkOption {
default = "root";
description = lib.mdDoc "The user account to login automatically.";
};
};
};
###### implementation
+
config = lib.mkIf cfg.enable {
services.xserver.displayManager = {
lightdm.enable = true;
autoLogin = {
···
session include lightdm
'';
};
}