summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-05-18 21:47:22 +0200
committerAlex Auvolat <alex@adnab.me>2024-05-18 21:47:22 +0200
commitacce97b8d431f27d696d57654930ff905f40f7b8 (patch)
tree4060b1c6ab9edd37f8868e25c5ae37ce3ec0d29d /nixos
parent2493d40db6503c0967cc4bc9152fffc4d2fe73a4 (diff)
downloaduser-config-acce97b8d431f27d696d57654930ff905f40f7b8.tar.gz
user-config-acce97b8d431f27d696d57654930ff905f40f7b8.zip
kusanagi: automatic login to sway session
Diffstat (limited to 'nixos')
-rw-r--r--nixos/kusanagi.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix
index 0b2bdbc..1a4a662 100644
--- a/nixos/kusanagi.nix
+++ b/nixos/kusanagi.nix
@@ -128,6 +128,13 @@ in
Option "TearFree" "true"
'';
+ # ---- automatic login ----
+
+ services.xserver.displayManager.defaultSession = "sway";
+ services.xserver.displayManager.lightdm.enable = true;
+ services.xserver.displayManager.autoLogin.enable = true;
+ services.xserver.displayManager.autoLogin.user = "lx";
+
# ---- specialization with extra stuff
specialisation."extra".configuration = { pkgs, ...}: {