diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-30 11:26:16 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-05-12 22:29:27 -0300 |
commit | 5ee5e4bb465cd7530e5f01de779334ca6cdc7870 (patch) | |
tree | 4c8f47dcf2c8764c4b7de8371b59b672cc76b3a0 /nixos/tests/common | |
parent | 334b168990a27099ae0a42bc3b9fe6b88c146adc (diff) |
nixos/tests/common/auto.nix: get rid of `with lib`
Diffstat (limited to 'nixos/tests/common')
-rw-r--r-- | nixos/tests/common/auto.nix | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/nixos/tests/common/auto.nix b/nixos/tests/common/auto.nix index f2ab82f88ff76..ac56bed4a88f1 100644 --- a/nixos/tests/common/auto.nix +++ b/nixos/tests/common/auto.nix @@ -1,23 +1,16 @@ { 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 { + enable = lib.mkOption { default = false; description = lib.mdDoc '' Whether to enable the fake "auto" display manager, which @@ -27,20 +20,16 @@ in ''; }; - user = mkOption { + user = lib.mkOption { default = "root"; description = lib.mdDoc "The user account to login automatically."; }; - }; - }; - ###### implementation - config = mkIf cfg.enable { - + config = lib.mkIf cfg.enable { services.xserver.displayManager = { lightdm.enable = true; autoLogin = { @@ -62,7 +51,5 @@ in session include lightdm ''; - }; - } |