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";
};
};
};
}

View file

@ -12,7 +12,6 @@ in
../modules/earlyoom.nix
../modules/fonts.nix
../modules/opengl.nix
../modules/pam.nix
../modules/sound.nix
../modules/ssh.nix
../modules/steam.nix
@ -23,6 +22,7 @@ in
../modules/samba.nix
../modules/gc.nix
../modules/headscale.nix
../modules/sway.nix
../secrets/remote-builder.nix
../users/fleaz.nix