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 = {
|
2024-07-25 23:24:19 -04:00
|
|
|
imports = [../desktop-environment/home/style.nix];
|
|
|
|
|
2024-07-10 16:56:19 -04:00
|
|
|
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-25 23:24: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"
|
|
|
|
];
|
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 = [
|
|
|
|
setupMonitors
|
2024-07-25 23:24:19 -04:00
|
|
|
"ags -b greeter &> /tmp/ags-greetd.log; hyprctl dispatch exit"
|
2024-07-10 16:56:19 -04:00
|
|
|
];
|
|
|
|
}
|
|
|
|
// devices;
|
|
|
|
};
|
|
|
|
};
|
2024-02-10 21:27:29 -05:00
|
|
|
}
|