98 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 *

This commit is contained in:
Max Känner 2024-03-07 11:38:49 +01:00
parent ad5d0049cf
commit a653e1756f

View File

@ -3,17 +3,44 @@
lib, lib,
pkgs, pkgs,
... ...
}: { }: let
swayConfig = pkgs.writeText "greetd-sway-config" ''
input * {
xkb_layout "de"
xkb_options "caps:ctrl_modifier"
xkb_numlock "enable"
}
input "type:touchpad" {
tap "enable"
natural_scroll "enable"
}
exec dbus-sway-environment
exec configure-gtk
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
exec "${pkgs.greetd.regreet}/bin/regreet; swaymsg exit"
bindsym Mod4+shift+e exec swaynag \
-t warning \
-m 'What do you want to do?' \
-b 'Poweroff' 'systemctl poweroff' \
-b 'Reboot' 'systemctl reboot'
'';
in {
programs.regreet.enable = true; programs.regreet.enable = true;
users.users.greeter = {
isNormalUser = false;
description = "Greeter";
extraGroups = [];
};
services.greetd = { services.greetd = {
enable = true; enable = true;
settings = rec { settings = {
initial_session = { initial_session = {
command = "${pkgs.greetd.regreet}/bin/regreet"; command = "${pkgs.sway}/bin/sway --config ${swayConfig}";
user = "max"; user = "greeter";
}; };
default_session = initial_session;
}; };
}; };