!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

403 Members
A room for maintainers of GNOME & GNOME-Related desktop environments (xfce, cinnamon, pantheon...)91 Servers

Load older messages


SenderMessageTime
29 Jan 2024
@d3vil0p3r:matrix.orgD3vil0p3r

Hello! I'm using NixOS with GNOME, and I use Nautilus as File Manager.

I set Tokyo Night Dark GTK theme (tokyo-night-gtk package) and it works well on GNOME windows like GNOME Tweaks and I tested it also on Mate and Cinnamon DEs and this GTK theme works.

I set this theme by:

  home-manager.users.${username} = { pkgs, ...}: {
    gtk = {
      enable = true;
      gtk3.extraConfig.gtk-decoration-layout = "menu:";
      theme = {
        name = "Tokyonight-Dark-B";
        package = pkgs.tokyo-night-gtk;
      };
      iconTheme = {
        name = "Tokyonight-Dark";
      };
      cursorTheme = {
        name = "Bibata-Modern-Ice";
        package = pkgs.bibata-cursors;
      };
    };

The problem is that this theme is not applied on Nautilus window that remains a light theme (I guess Adwaita).

How can I apply Nautilus GTK theme?

02:24:16
@lehmanator:tchncs.deSam Lehman joined the room.10:59:01
@lehmanator:tchncs.deSam Lehman set a profile picture.11:06:04
@jtojnar:matrix.orgJan TojnarReplied in https://discourse.nixos.org/t/setting-nautiilus-gtk-theme/3895813:36:22
@jtojnar:matrix.orgJan TojnarAlso please do not multipost without mentioning it – it can lead to duplicated effort in answering. 13:37:18
30 Jan 2024
@giangnh:matrix.orgGiang Nguyen joined the room.04:34:19
@giangnh:matrix.orgGiang NguyenI noticed that Google Chrome on NixOS with GNOME does not use GNOME keyring, does that means it uses some kind of built-in keyring on NixOS (if so, what is it?) or are my passwords stored in plaintext?04:36:17
@jtojnar:matrix.orgJan Tojnar
In reply to @giangnh:matrix.org
I noticed that Google Chrome on NixOS with GNOME does not use GNOME keyring, does that means it uses some kind of built-in keyring on NixOS (if so, what is it?) or are my passwords stored in plaintext?
Not sure about Chrome, would not be surprised if it just stored passwords in the cloud. But in Chromium, there should be autodetection – maybe something is broken in the package.
08:02:51
@adam:robins.wtf@adam:robins.wtf joined the room.15:45:45
31 Jan 2024
@diamondburned:matrix.orgdiamond (it/its) changed their display name from diamondburned to Diamond (it/she).03:20:04
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.03:36:48
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.06:22:22
@ashvith:matrix.org@ashvith:matrix.org left the room.14:37:49
@chocolatestrawberry:matrix.org@chocolatestrawberry:matrix.org changed their profile picture.19:02:49
@chocolatestrawberry:matrix.org@chocolatestrawberry:matrix.org changed their profile picture.19:03:28
1 Feb 2024
@ashvith:matrix.org@ashvith:matrix.org joined the room.09:03:47
@ashvith:matrix.org@ashvith:matrix.org Would this be a right place to ask about GTK issues on foreign distro? I am not able to run Setzer on Guix System - here's the issue I've created on Github. 09:05:04
@ashvith:matrix.org@ashvith:matrix.orgInterestingly, this app works only when I run it as root, but then, I cannot access the fonts I want to use.09:05:55
@ashvith:matrix.org@ashvith:matrix.orgI suspect that this could be either some issue related to PyGObject or WebKit.09:09:06
@jtojnar:matrix.orgJan Tojnar
In reply to @ashvith:matrix.org
Would this be a right place to ask about GTK issues on foreign distro? I am not able to run Setzer on Guix System - here's the issue I've created on Github.
Sounds like environment inconsistency. Please clarify where is setzer coming from and what the dev environment is.
13:16:54
@ashvith:matrix.org@ashvith:matrix.org
In reply to @jtojnar:matrix.org
Sounds like environment inconsistency. Please clarify where is setzer coming from and what the dev environment is.

I'm using Nix flakes to access the application. My configuration looks something like this:

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
  outputs = inputs@{ flake-parts, ... }:
  flake-parts.lib.mkFlake { inherit inputs; } {
   systems = [
     "x86_64-linux" "x86_64-darwin"
     "aarch64-linux" "aarch64-darwin"
    ];
    perSystem = { config, self', inputs', pkgs, system, ... }: {
      devShells.default = with pkgs; mkShell {
        buildInputs = [
          nodejs_20 setzer
          nodePackages.pnpm
          (pkgs.texlive.combine {
            inherit (pkgs.texlive)
            scheme-small enumitem nopageno
            pbox tokcycle censor multirow
            subfiles adjustbox ccicons
            chronosys colophon titlesec;
          })
        ];
      }; 
    };
  };
}

This was working fine on a Nix system, which is no longer accessible, as my main laptop is broken, but it won't work properly on a Guix system that I am currently using.

13:19:59
@ashvith:matrix.org@ashvith:matrix.org Here's how it used to work: I would run nix develop, and then access the setzer app from there. 13:20:44
@jtojnar:matrix.orgJan TojnarThat looks fine. Maybe the environment contamination comes from ambient environment then. 13:25:45
@jtojnar:matrix.orgJan TojnarOr it is some other issue. 13:26:01
@ashvith:matrix.org@ashvith:matrix.org * Here's how it used to work: I would run nix develop, and then access the setzer app from the CLI. 13:26:33
@ashvith:matrix.org@ashvith:matrix.org
In reply to @jtojnar:matrix.org
That looks fine. Maybe the environment contamination comes from ambient environment then.
Interestingly, gnome-latex seems to work fine. When I try adding python310Packages.pygobject3 to build input, the problem shifts to cairo having issues.
13:29:03
@ashvith:matrix.org@ashvith:matrix.org

Here's the log:

$ setzer 

(process:29915): Gtk-WARNING **: 19:00:13.081: Locale not supported by C library.
	Using the fallback 'C' locale.
Fontconfig error: Cannot load default config file: No such file: (null)
Traceback (most recent call last):
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/bin/..setzer-wrapped-wrapped", line 28, in <module>
    from setzer.workspace.workspace import Workspace
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/lib/python3.11/site-packages/setzer/workspace/workspace.py", line 26, in <module>
    import setzer.document.preview.preview as preview
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/lib/python3.11/site-packages/setzer/document/preview/preview.py", line 31, in <module>
    import setzer.document.preview.preview_presenter as preview_presenter
  File "/nix/store/g6l9y20628gridb0g2kypvn2n4m5rdfd-setzer-62/lib/python3.11/site-packages/setzer/document/preview/preview_presenter.py", line 21, in <module>
    import cairo
  File "/nix/store/m69f7w3q03ihr9a34ajbm872k2na5xr8-python3.10-pycairo-1.24.0/lib/python3.10/site-packages/cairo/__init__.py", line 1, in <module>
    from ._cairo import *  # noqa: F401,F403
    ^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'cairo._cairo'
13:30:46
@ashvith:matrix.org@ashvith:matrix.org However, adding python310Packages.pycairo to build input did not fix this issue. 13:31:31
@ashvith:matrix.org@ashvith:matrix.org * However, adding python310Packages.pycairo to build input did not fix this issue. Setzer only works on root, but all the fonts are unavailable. 13:32:40
@jtojnar:matrix.orgJan TojnarLooking at the error some more, it indeed appears to be contamination. It tries to load libs from guix store13:32:47

Show newer messages


Back to Room ListRoom Version: 6