summary refs log tree commit diff
path: root/nixos/tests/common
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-04-30 11:26:16 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-05-12 22:29:27 -0300
commit5ee5e4bb465cd7530e5f01de779334ca6cdc7870 (patch)
tree4c8f47dcf2c8764c4b7de8371b59b672cc76b3a0 /nixos/tests/common
parent334b168990a27099ae0a42bc3b9fe6b88c146adc (diff)
downloadnixpkgs-5ee5e4bb465cd7530e5f01de779334ca6cdc7870.tar
nixpkgs-5ee5e4bb465cd7530e5f01de779334ca6cdc7870.tar.gz
nixpkgs-5ee5e4bb465cd7530e5f01de779334ca6cdc7870.tar.bz2
nixpkgs-5ee5e4bb465cd7530e5f01de779334ca6cdc7870.tar.lz
nixpkgs-5ee5e4bb465cd7530e5f01de779334ca6cdc7870.tar.xz
nixpkgs-5ee5e4bb465cd7530e5f01de779334ca6cdc7870.tar.zst
nixpkgs-5ee5e4bb465cd7530e5f01de779334ca6cdc7870.zip
nixos/tests/common/auto.nix: get rid of `with lib`
Diffstat (limited to 'nixos/tests/common')
-rw-r--r--nixos/tests/common/auto.nix19
1 files changed, 3 insertions, 16 deletions
diff --git a/nixos/tests/common/auto.nix b/nixos/tests/common/auto.nix
index f2ab82f88ff..ac56bed4a88 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
     '';
-
   };
-
 }