Skip to content

Commit

Permalink
Don't emit autoLogin config with eval warning
Browse files Browse the repository at this point in the history
Fix this evaluation warning on the first rebuild after install:

  [test@nixos:~]$ sudo nixos-rebuild build
  building Nix...
  building the system configuration...
  evaluation warning: The option `services.xserver.displayManager.autoLogin' defined in `/etc/nixos/configuration.nix' has been renamed to `services.displayManager.autoLogin'.
  • Loading branch information
bjornfor committed Dec 11, 2024
1 parent 2fa5064 commit 41f9b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/nixos/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@
"""

cfgautologin = """ # Enable automatic login for the user.
services.xserver.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = "@@username@@";
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = "@@username@@";
"""

Expand Down

0 comments on commit 41f9b1b

Please sign in to comment.