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.