diff options
author | Nick Cao <nickcao@nichi.co> | 2024-05-14 09:36:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 09:36:02 -0400 |
commit | ff610bbb0212a84e268e7a8d37b618b1dbc16892 (patch) | |
tree | 457900db38042b6798aaaeb086707a8b3aeb7fdc /nixos | |
parent | 7cc87c70fc9eb980ccf12c961de97737b28616c9 (diff) | |
parent | 4b1e83e97c6bb8e5635c69ae92ecb889ba743cb8 (diff) |
Merge pull request #311376 from SuperSandro2000/display-managers-misc
nixos/display.managers: use cfg where possible
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/display-managers/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/display-managers/default.nix b/nixos/modules/services/display-managers/default.nix index 6fa8556e39be..feba4b163ccd 100644 --- a/nixos/modules/services/display-managers/default.nix +++ b/nixos/modules/services/display-managers/default.nix @@ -113,7 +113,7 @@ in type = lib.types.nullOr lib.types.str // { description = "session name"; check = d: - lib.assertMsg (d != null -> (lib.types.str.check d && lib.elem d config.services.displayManager.sessionData.sessionNames)) '' + lib.assertMsg (d != null -> (lib.types.str.check d && lib.elem d cfg.sessionData.sessionNames)) '' Default graphical session, '${d}', not found. Valid names for 'services.displayManager.defaultSession' are: ${lib.concatStringsSep "\n " cfg.sessionData.sessionNames} @@ -187,7 +187,7 @@ in services.displayManager.sessionData = { desktops = installedSessions; - sessionNames = lib.concatMap (p: p.providedSessions) config.services.displayManager.sessionPackages; + sessionNames = lib.concatMap (p: p.providedSessions) cfg.sessionPackages; # We do not want to force users to set defaultSession when they have only single DE. autologinSession = if cfg.defaultSession != null then |