feat: auto-login user

This commit is contained in:
Michael Mandl 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;
};
};
}