From 16d7d81dc1be150f5700e6cefeefa418f811f0c5 Mon Sep 17 00:00:00 2001 From: alexion Date: Sat, 10 Oct 2026 13:56:58 -0400 Subject: [PATCH] refactor(hyprland): inline module aliases --- .../nixos/modules/desktop/session/hyprland/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/configs/nixos/modules/desktop/session/hyprland/default.nix b/configs/nixos/modules/desktop/session/hyprland/default.nix index 593c5eb..86c3874 100644 --- a/configs/nixos/modules/desktop/session/hyprland/default.nix +++ b/configs/nixos/modules/desktop/session/hyprland/default.nix @@ -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.