nix-config/modules/regreet/regreet.nix
2025-04-04 12:57:23 +02:00

63 lines
1.5 KiB
Nix

{ pkgs, username, ... }: {
/*services.greetd = {
enable = true;
settings = {
default_session = {
user = username;
command = "$HOME/.wayland-session";
};
};
};*/
services.displayManager = {
sessionPackages = [ pkgs.hyprland ];
};
environment.etc= {
"greetd/background.png".source = ../../wallpapers/lucy_with_cat.png;
"greetd/environments".text = ''
hyprland
fish
'';
};
programs.regreet = {
enable = true;
#cageArgs = ["-s" "-m" "last" ];
#settings = ./regreet.toml;
settings = {
background = {
path = "/etc/greetd/background.png";
fit = "Fill";
};
env.SESSION_DIRS = "$HOME/.wayland-session";
GTK = {
application_prefer_dark_theme = true;
cursor_theme_name = "Adwaita";
font_name = "FiraCodeNerdFontPropo 12";
icon_theme_name = "materialdesignicons";
theme_name = "Adwaita";
};
commands = {
reboot = ["systemctl", "reboot"];
poweroff = ["systemctl", "poweroff"];
x11_prefix = [ "startx", "/usr/bin/env" ];
};
appearance = {
greeting_msg = "Welcome";
};
"widget.clock" = {
format = "%A %T";
resolution = "500ms";
timezone = "Europe/Berlin";
label_width = 150;
};
};
};
}