dot.nix/hosts/common/optional/hyprland/greetd.nix
Chris Toph 99cd170ffe Switches to uwsm for Hyprland session setup, WIP portals config needs cleanup
- Disables systemd management in favor of uwsm
- Updates environment variables for Wayland and portal support
- Adds xdg-desktop-portal packages to dependencies
- Adjusts greetd and Wayland configuration for uwsm integration
2025-04-14 13:50:59 -04:00

36 lines
779 B
Nix

#
# greeter -> tuigreet https://github.com/apognu/tuigreet?tab=readme-ov-file
# display manager -> greetd https://man.sr.ht/~kennylevinsen/greetd/
#
{
config,
pkgs,
lib,
...
}:
let
hostSpec = config.hostSpec.username;
default = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks --time --time-format '%I:%M %p | %a %h | %F' --cmd uwsm start hyprland.desktop";
user = "toph";
};
initial = {
# command = "${pkgs.hyprland}/bin/Hyprland";
command = "uwsm start hyprland.desktop";
user = "toph";
};
in
{
# environment.systemPackages = [ pkgs.greetd.tuigreet ];
services.greetd = {
enable = true;
restart = true;
settings = rec {
default_session = default;
initial_session = initial;
};
};
}