From 717939bc12f3e447a69bd6e5c5b9e5745551571d Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Thu, 13 Aug 2020 18:33:01 -0400 Subject: [PATCH] feat(chupacabra): Enable X auto-login I have an encrypted drive, so this extra layer of security is pointless Change-Id: Ifa523ee5ea545b5ee17536d34f60d7235e47f25c Reviewed-on: https://cl.tvl.fyi/c/depot/+/1741 Tested-by: BuildkiteCI Reviewed-by: glittershark --- users/glittershark/system/home/modules/i3.nix | 3 ++- .../glittershark/system/system/modules/xserver.nix | 14 +++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/users/glittershark/system/home/modules/i3.nix b/users/glittershark/system/home/modules/i3.nix index f5fdb3a02..e5f9cb530 100644 --- a/users/glittershark/system/home/modules/i3.nix +++ b/users/glittershark/system/home/modules/i3.nix @@ -51,7 +51,8 @@ in { peek ]; - xsession.scriptPath = ".hm-xsession"; + xsession.scriptPath = ".xsession"; + xsession.windowManager.i3 = { enable = true; config = { diff --git a/users/glittershark/system/system/modules/xserver.nix b/users/glittershark/system/system/modules/xserver.nix index 813884fa6..b4946f13b 100644 --- a/users/glittershark/system/system/modules/xserver.nix +++ b/users/glittershark/system/system/modules/xserver.nix @@ -7,7 +7,19 @@ libinput.enable = true; -# windowManager.i3 = { + displayManager = { + defaultSession = "none+i3"; + + lightdm = { + enable = true; + autoLogin = { + enable = true; + user = "grfn"; + }; + }; + }; + + windowManager.i3.enable = true; # enable = true; # extraPackages = with pkgs; [ # i3status