fix(hyprland): register portal once

This commit is contained in:
Barrett Ruth 2026-02-15 01:34:58 -05:00
parent 217b81c877
commit 4729625193
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
5 changed files with 16 additions and 89 deletions

View file

@ -45,13 +45,7 @@ in
hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland
else
pkgs.hyprland;
portalPackage =
if !hostConfig.isNixOS then
null
else if hyprland != null then
hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
else
pkgs.xdg-desktop-portal-hyprland;
portalPackage = null;
systemd.enable = hostConfig.isNixOS;
extraConfig = ''