use swaylock instead of ly on boot up

This commit is contained in:
2026-09-23 03:42:44 +05:00
parent 5306e9f1bd
commit dc31be6dcd
2 changed files with 16 additions and 10 deletions
+3
View File
@@ -115,6 +115,9 @@ mode "resize" {
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
# Autologin via greetd (hosts/la2410/configuration.nix) -- this lock is the login.
exec swaylock -e -c 000000
exec { exec {
waybar waybar
kanshi kanshi
+13 -10
View File
@@ -272,18 +272,21 @@ pulse.enable = true;
}; };
services.displayManager.ly = { # Boot straight into sway as shihaam; sway locks itself on startup (see the
# swaylock exec in config/sway/config), so the swaylock password is the login.
# initial_session only fires once per boot -- after logging out of sway,
# greetd falls back to default_session, a normal tuigreet login.
services.greetd = {
enable = true; enable = true;
settings = { settings = {
# auto_login_user = "shihaam"; initial_session = {
# auto_login_session = "sway"; command = "sway";
# auto_login_service = "ly-autologin"; user = "shihaam";
animation = "matrix"; };
bigclock = "en"; default_session = {
asterisk = null; command = "${pkgs.tuigreet}/bin/tuigreet --time --asterisks --cmd sway";
battery_id = "BAT0"; user = "greeter";
brightness_up_cmd = "${pkgs.brightnessctl}/bin/brightnessctl -q -n s +10%"; };
brightness_down_cmd = "${pkgs.brightnessctl}/bin/brightnessctl -q -n s 10%-";
}; };
}; };
#boot.kernelModules = [ "i2c-dev" ]; #boot.kernelModules = [ "i2c-dev" ];