From c98d05bc0a6e6a38e879d4300816e5a715818eba Mon Sep 17 00:00:00 2001 From: Tristan Date: Fri, 31 May 2024 13:53:41 +0100 Subject: [PATCH] nixbook: fix hyprland screen sharing again --- home/desktop/hyprland/default.nix | 7 +++++-- nixos/workstation.nix | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/home/desktop/hyprland/default.nix b/home/desktop/hyprland/default.nix index d17969c..21eb2f9 100644 --- a/home/desktop/hyprland/default.nix +++ b/home/desktop/hyprland/default.nix @@ -16,12 +16,15 @@ in { xdg.portal = { enable = true; configPackages = [pkgs.hyprland]; - extraPortals = [pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk]; + extraPortals = [pkgs.xdg-desktop-portal-gtk]; }; wayland.windowManager.hyprland = { enable = true; - systemd.enable = true; + systemd = { + enable = true; + variables = ["--all"]; + }; settings = { exec-once = ["${pkgs.swaybg}/bin/swaybg -i ${config.stylix.image} -m fill"]; input = { diff --git a/nixos/workstation.nix b/nixos/workstation.nix index 07d2d6e..fe841b8 100644 --- a/nixos/workstation.nix +++ b/nixos/workstation.nix @@ -10,6 +10,10 @@ "electron-25.9.0" ]; + programs.hyprland = { + enable = true; + }; + # use pipewire hardware.pulseaudio.enable = false; security.rtkit.enable = true;