| 13 Oct 2023 |
Jan Tojnar | In reply to @5m5z3q888q5prxkg:chat.lightnovel-dungeon.de I have issues on tauri, because nixos seems to not ship webkitgtk with webrtc support enabled does anyone know how to enable it?
Context: https://webkitgtk.org/2023/02/02/webkitgtk2.38.4-released.html (Fix the build with GStreamer-based WebRTC enabled.) We should have it, make sure to add the relevant gstreamer plugin to the program’s buildInputs and wrapGAppsHook to its nativeBuildInputs: https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-plugins | 18:40:18 |
Jan Tojnar | Adding pkgs.gnome.gnome-shell-extensions to environment.gnome.excludePackages NixOS option should work | 18:42:23 |
Jan Tojnar | just note that some extensions require other dependencies and it might not be easily possible to install those dependencies system-wide | 18:43:43 |
Jan Tojnar | so installing such extensions from Nixpkgs might be the only option | 18:44:11 |
Jan Tojnar | see https://github.com/NixOS/nixpkgs/blob/a9f8820d17c8bc30e7c61f532277100893d49ac7/nixos/modules/services/x11/desktop-managers/gnome.nix#L379-L384 for the built-in extensions | 18:45:49 |
Jan Tojnar | and https://github.com/NixOS/nixpkgs/blob/a9f8820d17c8bc30e7c61f532277100893d49ac7/nixos/modules/services/x11/desktop-managers/gnome.nix#L379-L384 for a (non-exhaustive) list of extensions that may need dependency patching | 18:46:26 |
@ajcxz0:matrix.org | Thank you, Jan Tojnar . I appreciate the quick response even if I don't fully understand it yet. Those two gnome.nix URLs are the same an I trust seeing them again will not materially affect how I should change configuration.nix in my 23.05 channel install. That is, of course, what I have been trying and failing to successfully do. I will try to translate
Adding pkgs.gnome.gnome-shell-extensions to environment.gnome.excludePackages NixOS option
| 19:02:59 |
@ajcxz0:matrix.org | * Thank you, Jan Tojnar . I appreciate the quick response even if I don't fully understand it yet. Those two gnome.nix URLs are the same an I trust seeing them again will not materially affect how I should change configuration.nix in my 23.05 channel install. That is, of course, what I have been trying and failing to successfully do. I will try to translate
Adding pkgs.gnome.gnome-shell-extensions to environment.gnome.excludePackages NixOS option
into code which fits in my nearly default configuration.nix, then share it here.
| 19:03:34 |
@ajcxz0:matrix.org | Looking good so far. It seems like a variation I had not tried was using pkgs.gnome.gnome-shell-extensions versus gnome.gnome-shell-extensions or gnome-shell-extensions in each of the places I tried it. Thank you!
environment.gnome.excludePackages = (with pkgs; [
pkgs.gnome.gnome-shell-extensions
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
atomix # puzzle game
cheese # webcam tool
...
]);
$ sudo nixos-rebuild switch
building Nix...
building the system configuration...
these 25 derivations will be built:
...
I'll test the results by logging out and back in shortly.
| 19:11:58 |
@ajcxz0:matrix.org | * Looking good so far. It seems like a variation I had not tried was using pkgs.gnome.gnome-shell-extensions versus gnome.gnome-shell-extensions or gnome-shell-extensions in each of the places I tried it. Thank you!
environment.gnome.excludePackages = (with pkgs; [
pkgs.gnome.gnome-shell-extensions
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
atomix # puzzle game
cheese # webcam tool
...
]);
$ sudo nixos-rebuild switch
building Nix...
building the system configuration...
these 25 derivations will be built:
...
I'll test the results by logging out and back in shortly.
| 19:12:23 |
@ajcxz0:matrix.org | * Looking good so far. It seems like a variation I had not tried was using pkgs.gnome.gnome-shell-extensions versus gnome.gnome-shell-extensions or gnome-shell-extensions in each of the places I tried it. Thank you!
environment.gnome.excludePackages = (with pkgs; [
pkgs.gnome.gnome-shell-extensions
gnome-photos
gnome-tour
]) ++ (with pkgs.gnome; [
atomix # puzzle game
cheese # webcam tool
...
]);
$ sudo nixos-rebuild switch
building Nix...
building the system configuration...
these 25 derivations will be built:
...
I'll test the results by logging out and back in shortly.
| 19:12:51 |
@ajcxz0:matrix.org | Logged out, rebooted (just to be 100% certain), logged back in and all extensions are goes according to both org.gnome.Extensions and https://extensions.gnome.org/local/ Thank you! | 19:35:38 |
@ajcxz0:matrix.org | * Logged out, rebooted (just to be 100% certain), logged back in and all extensions are gone according to both org.gnome.Extensions and https://extensions.gnome.org/local/ with nothing broken which I've noticed yet. Thank you! | 19:37:50 |
@ajcxz0:matrix.org | * How do I remove all the Extensions from my default NixOS + GNOME install? I've RTFM, RTFW, STFW, chatted with two AI bots (one of which told me to RTFM after getting almost everything wrong), searched here and tried every variation of all the suggestions I've found resulting in nothing but errors while "building the system configuration..." I'm not using home-manager, just configuration.nix. I would like to manage my user desktop environment locally, i.e. user Flatpaks, dconf-editor, Extensions, etc. - at least for now. [Please respond in a thread, as I don't want to clutter the Room with my cluelessness.]
Update: Solution by Jan Tojnar fully described in the thread.
| 19:39:46 |
| 14 Oct 2023 |
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de | In reply to @jtojnar:matrix.org We should have it, make sure to add the relevant gstreamer plugin to the program’s buildInputs and wrapGAppsHook to its nativeBuildInputs: https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-plugins We don't: https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/libraries/webkitgtk/default.nix#L197
it requires -DUSE_GSTREAMER_WEBRTC=ON and -DENABLE_WEB_RTC=ON
| 01:52:06 |
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de | In reply to @jtojnar:matrix.org We should have it, make sure to add the relevant gstreamer plugin to the program’s buildInputs and wrapGAppsHook to its nativeBuildInputs: https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-plugins * We don't: https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/libraries/webkitgtk/default.nix#L197
it requires -DUSE_GSTREAMER_WEBRTC=ON and -DENABLE_WEB_RTC=ON
And there doesn't seem to be any relevant gstreamer plugin in nixpkgs
| 01:53:49 |
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de | Seem like it's this one? https://gstreamer.freedesktop.org/documentation/webrtclib/index.html?gi-language=c | 01:55:08 |
@galaxy-nova:matrix.org | hello | 02:40:51 |
@galaxy-nova:matrix.org | i can't build the branch | 02:40:54 |
@galaxy-nova:matrix.org | gjs fails to build for me | 02:41:02 |
@galaxy-nova:matrix.org | Download log.txt | 02:43:31 |
@galaxy-nova:matrix.org | things seem to be getting killed by SIGTRAP which is pretty odd | 02:43:56 |
@galaxy-nova:matrix.org | not sure what this is being cauised by | 02:44:05 |
@galaxy-nova:matrix.org | any idea what could be causing this? | 02:50:14 |
Jan Tojnar | In reply to @5m5z3q888q5prxkg:chat.lightnovel-dungeon.de
We don't: https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/libraries/webkitgtk/default.nix#L197
it requires -DUSE_GSTREAMER_WEBRTC=ON and -DENABLE_WEB_RTC=ON
And there doesn't seem to be any relevant gstreamer plugin in nixpkgs
hmm, looks like it is still experimental, you can enable it locally with overrideAttrs but we probably do not want that in Nixpkgs yet | 11:35:30 |
Jan Tojnar | In reply to @galaxy-nova:matrix.org things seem to be getting killed by SIGTRAP which is pretty odd that usually means test crashes, maybe try building it again in case it is non-deterministic failure. Sometimes the non-deterministic failures are more likely to occur when the CPU is busy (e.g. building a lot of other stuff) so also try building just gjs | 11:40:01 |
Jan Tojnar | * and https://github.com/NixOS/nixpkgs/blob/44688570acaa6bf06a50a479f5d86e9c1adbe033/pkgs/desktops/gnome/extensions/extensionOverrides.nix for a (non-exhaustive) list of extensions that may need dependency patching | 11:41:14 |
Jan Tojnar | In reply to @ajcxz0:matrix.org
Thank you, Jan Tojnar . I appreciate the quick response even if I don't fully understand it yet. Those two gnome.nix URLs are the same an I trust seeing them again will not materially affect how I should change configuration.nix in my 23.05 channel install. That is, of course, what I have been trying and failing to successfully do. I will try to translate
Adding pkgs.gnome.gnome-shell-extensions to environment.gnome.excludePackages NixOS option
into code which fits in my nearly default configuration.nix, then share it here.
updated the URL, it should have been https://github.com/NixOS/nixpkgs/blob/44688570acaa6bf06a50a479f5d86e9c1adbe033/pkgs/desktops/gnome/extensions/extensionOverrides.nix | 11:42:36 |
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de | In reply to @jtojnar:matrix.org hmm, looks like it is still experimental, you can enable it locally with overrideAttrs but we probably do not want that in Nixpkgs yet elaborate how? | 11:42:52 |
Jan Tojnar | how what? | 11:43:01 |