change DM to tuigreet

This commit is contained in:
Leon Vatthauer 2024-03-31 10:26:42 +02:00
parent 20e0792b92
commit 61cec49a5e
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8

View file

@ -58,35 +58,44 @@
services.greetd = {
enable = true;
package = pkgs.greetd.gtkgreet;
settings = {
default_session = {
command = "Hyprland --config /etc/greetd/hyprland.conf";
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --remember --cmd Hyprland";
user = "greeter";
};
};
};
environment.etc."greetd/environments".text = ''
Hyprland
'';
environment.etc."greetd/hyprland.conf".text = ''
monitor = DP-3,2560x1440@144,1920x0,1
monitor = HDMI-A-5,1920x1080@75,0x0,1
misc {
disable_hyprland_logo = true
}
# services.greetd = {
# enable = true;
# package = pkgs.greetd.gtkgreet;
# settings = {
# default_session = {
# command = "Hyprland --config /etc/greetd/hyprland.conf";
# user = "greeter";
# };
# };
# };
# environment.etc."greetd/environments".text = ''
# Hyprland
# '';
# environment.etc."greetd/hyprland.conf".text = ''
# monitor = DP-3,2560x1440@144,1920x0,1
# monitor = HDMI-A-5,1920x1080@75,0x0,1
# misc {
# disable_hyprland_logo = true
# }
exec-once = gtkgreet -l -b /etc/greetd/wallpaper.jpg -s /etc/greetd/style.css; hyprctl dispatch exit
'';
environment.etc."greetd/wallpaper.jpg".source = ./hypr/wallpaper.jpg;
environment.etc."greetd/style.css".text = ''
window {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-color: black;
}
'';
# exec-once = tuigreet -l -b /etc/greetd/wallpaper.jpg -s /etc/greetd/style.css; hyprctl dispatch exit
# '';
# environment.etc."greetd/wallpaper.jpg".source = ./hypr/wallpaper.jpg;
# environment.etc."greetd/style.css".text = ''
# window {
# background-position: center;
# background-repeat: no-repeat;
# background-size: cover;
# background-color: black;
# }
# '';
# Configure console keymap
console.keyMap = "us";