refactor(hyprland): inline module aliases

This commit is contained in:
2026-10-10 13:56:58 -04:00
parent 23434ab8c9
commit 16d7d81dc1

View File

@@ -4,14 +4,10 @@
...
}:
# The Hyprland compositor.
let
cfg = config.modules.desktop.session.hyprland; # NOLINT(let_order)
user = config.user.name;
in
{
options.modules.desktop.session.hyprland.enable = lib.mkEnableOption "the Hyprland compositor";
config = lib.mkIf cfg.enable {
config = lib.mkIf config.modules.desktop.session.hyprland.enable {
# This program integration owns the session, portals, and polkit, launched
# through the universal Wayland session manager.
programs.hyprland = {
@@ -19,7 +15,7 @@ in
withUWSM = true;
};
home-manager.users.${user}.wayland.windowManager.hyprland = {
home-manager.users.${config.user.name}.wayland.windowManager.hyprland = {
enable = true;
# One package drives the whole session, so there is never a version split.