From 59fbd0545c0cbd0ade1cb8fcb03238bb0e847595 Mon Sep 17 00:00:00 2001 From: CDaut Date: Wed, 14 Aug 2024 11:04:11 +0200 Subject: [PATCH] screen sharing (still broken tho) --- configuration.nix | 13 ++++++++++++- home.nix | 8 ++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 0906b28..607f862 100644 --- a/configuration.nix +++ b/configuration.nix @@ -20,7 +20,7 @@ boot.initrd.kernelModules = [ "amdgpu" "coretemp" ]; - boot.kernelParams = ["intel_iommu=on"]; + boot.kernelParams = [ "intel_iommu=on" ]; services.hardware.bolt.enable = true; @@ -293,6 +293,17 @@ amdvlk ]; + # firefox screen sharing + xdg = { + portal = { + enable = true; + configPackages = with pkgs; [ + xdg-desktop-portal-wlr + xdg-desktop-portal-gtk + ]; + }; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/home.nix b/home.nix index 7f842ce..8db6997 100644 --- a/home.nix +++ b/home.nix @@ -46,7 +46,7 @@ let username = "clara"; in alacritty imagemagick htop - firefox + (pkgs.wrapFirefox (pkgs.firefox-unwrapped.override { pipewireSupport = true; }) { }) tex jetbrains.idea-ultimate jetbrains.clion @@ -83,6 +83,9 @@ let username = "clara"; in mpv helvum gvfs + vdhcoapp + inkscape + prusa-slicer ] ++ (if x11mode then [ arandr flameshot @@ -93,7 +96,7 @@ let username = "clara"; in sway-contrib.grimshot ]); - + fonts.fontconfig.enable = true; @@ -114,6 +117,7 @@ let username = "clara"; in home.sessionVariables = { EDITOR = "vim"; GTK_THEME = "Adwaita:dark"; + XDG_CURRENT_DESKTOP = "sway"; }; systemd.user.sessionVariables = { GTK2_RC_FILES = "/home/${username}/.gtkrc-2.0";