tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/tests/common/auto.nix: get rid of `with lib`
Anderson Torres
2 years ago
5ee5e4bb
334b1689
+3
-16
1 changed file
expand all
collapse all
unified
split
nixos
tests
common
auto.nix
+3
-16
nixos/tests/common/auto.nix
···
1
1
{ config, lib, ... }:
2
2
3
3
-
with lib;
4
4
-
5
3
let
6
6
-
7
4
dmcfg = config.services.xserver.displayManager;
8
5
cfg = config.test-support.displayManager.auto;
9
9
-
10
6
in
11
11
-
12
7
{
13
8
14
9
###### interface
15
10
16
11
options = {
17
17
-
18
12
test-support.displayManager.auto = {
19
19
-
20
20
-
enable = mkOption {
13
13
+
enable = lib.mkOption {
21
14
default = false;
22
15
description = lib.mdDoc ''
23
16
Whether to enable the fake "auto" display manager, which
···
27
20
'';
28
21
};
29
22
30
30
-
user = mkOption {
23
23
+
user = lib.mkOption {
31
24
default = "root";
32
25
description = lib.mdDoc "The user account to login automatically.";
33
26
};
34
34
-
35
27
};
36
36
-
37
28
};
38
38
-
39
29
40
30
###### implementation
41
31
42
42
-
config = mkIf cfg.enable {
43
43
-
32
32
+
config = lib.mkIf cfg.enable {
44
33
services.xserver.displayManager = {
45
34
lightdm.enable = true;
46
35
autoLogin = {
···
62
51
63
52
session include lightdm
64
53
'';
65
65
-
66
54
};
67
67
-
68
55
}