2024-02-10 21:27:29 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-07-10 16:56:19 -04:00
|
|
|
inherit (lib) filterAttrs hasPrefix optionals;
|
2024-02-10 21:27:29 -05:00
|
|
|
|
|
|
|
inherit (import ./setupMonitors.nix {inherit config pkgs;}) setupMonitors;
|
|
|
|
|
2024-06-27 00:56:27 -04:00
|
|
|
cfg = config.roles.desktop;
|
|
|
|
|
2024-02-10 21:27:29 -05:00
|
|
|
# Nix stuff
|
2024-06-24 12:30:49 -04:00
|
|
|
cfgHypr =
|
|
|
|
config
|
|
|
|
.home-manager
|
|
|
|
.users
|
2024-06-27 00:56:27 -04:00
|
|
|
.${cfg.user}
|
2024-06-24 12:30:49 -04:00
|
|
|
.wayland
|
|
|
|
.windowManager
|
|
|
|
.hyprland;
|
2024-02-10 21:27:29 -05:00
|
|
|
|
|
|
|
devices = filterAttrs (n: v: hasPrefix "device:" n) cfgHypr.settings;
|
|
|
|
in {
|
2024-07-10 16:56:19 -04:00
|
|
|
home-manager.users.greeter = {
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
package = cfgHypr.finalPackage;
|
|
|
|
systemd.enable = false;
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-07-10 16:56:19 -04:00
|
|
|
settings =
|
|
|
|
{
|
|
|
|
inherit (cfgHypr.settings) cursor input misc monitor;
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-07-10 16:56:19 -04:00
|
|
|
envd =
|
|
|
|
(optionals (config.nvidia.enable) [
|
|
|
|
"LIBVA_DRIVER_NAME, nvidia"
|
|
|
|
"NVD_BACKEND, direct"
|
|
|
|
"XDG_SESSION_TYPE, wayland"
|
|
|
|
"GBM_BACKEND, nvidia-drm"
|
|
|
|
"__GLX_VENDOR_LIBRARY_NAME, nvidia"
|
|
|
|
])
|
|
|
|
++ [
|
|
|
|
"XCURSOR_SIZE,24"
|
|
|
|
];
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-07-10 16:56:19 -04:00
|
|
|
general.border_size = 0;
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-07-10 16:56:19 -04:00
|
|
|
decoration = {
|
|
|
|
blur.enabled = false;
|
|
|
|
drop_shadow = false;
|
|
|
|
};
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-07-10 16:56:19 -04:00
|
|
|
exec-once = [
|
|
|
|
"hyprctl setcursor Dracula-cursors 24"
|
2024-02-10 21:27:29 -05:00
|
|
|
|
2024-07-10 16:56:19 -04:00
|
|
|
setupMonitors
|
|
|
|
"astal -b greeter &> /tmp/astal.log; hyprctl dispatch exit"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
// devices;
|
|
|
|
};
|
|
|
|
};
|
2024-02-10 21:27:29 -05:00
|
|
|
}
|