From e395bae737f7b99663290c16b3cad4bcdea41db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 5 Aug 2022 21:50:01 +0100 Subject: [PATCH] autologin for kiosk --- nixos/boxes/homescreen/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/boxes/homescreen/default.nix b/nixos/boxes/homescreen/default.nix index 79e3963a..21610d97 100644 --- a/nixos/boxes/homescreen/default.nix +++ b/nixos/boxes/homescreen/default.nix @@ -21,9 +21,15 @@ services.xserver = { enable = true; displayManager.lightdm.enable = true; + displayManager.autoLogin.enable = true; + displayManager.autoLogin.user = "kiosk"; desktopManager.gnome.enable = true; }; + users = { + mutableUsers = false; + users.kiosk = { isNormalUser = true; }; + }; users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEo4R+6J3h6Ix3xWpOMdU7Es1/YxFchHw0c+kcCOJxFb cyryl@foureighty" ];