home: Add greetd

This commit is contained in:
fleaz 2023-10-13 18:45:12 +02:00
parent 2c8d1522b1
commit 2227318450
3 changed files with 21 additions and 5 deletions

View file

@ -1,4 +0,0 @@
{
# Allow swaylock to talk to PAM
security.pam.services.swaylock = { };
}

20
modules/sway.nix Normal file
View file

@ -0,0 +1,20 @@
{
# enable sway, so we have a swaylock pam config
programs.sway.enable = true;
# autologin
services.greetd = {
enable = true;
settings = {
default_session = {
command = "sway";
user = "fleaz";
};
initial_session = {
command = "sway";
user = "fleaz";
};
};
};
}