feat: auto-login user
This commit is contained in:
parent
497d37c36a
commit
c6506d0354
1 changed files with 8 additions and 13 deletions
21
greetd.nix
21
greetd.nix
|
@ -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";
|
||||
};
|
||||
|
||||
default_session = initial_session;
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc."greetd/environments".text = ''
|
||||
sway
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue