feat: auto-login user

This commit is contained in:
mandlm 2024-07-12 21:36:23 +02:00
parent 497d37c36a
commit c6506d0354
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -1,19 +1,14 @@
{ config, pkgs, ... }:
{ ... }:
{
services.greetd = {
enable = true;
settings = {
default_session.command = ''
${pkgs.greetd.tuigreet}/bin/tuigreet \
--time \
--asterisks \
--user-menu \
--cmd sway
'';
};
settings = rec {
initial_session = {
command = "sway";
user = "mandlm";
};
environment.etc."greetd/environments".text = ''
sway
'';
default_session = initial_session;
};
};
}