nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.17k stars 1.85k forks source link

bug: Cannot create symlink of gtk.css #5721

Closed RAVENz46 closed 3 months ago

RAVENz46 commented 3 months ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

I wanna create symlink of gtk-4.0 stuff for libadwaita apps. However, I can't and it seems bug. I confirm that gtk.css exits in package and /nix/store/*-home-manager-files/.config/gtk-4.0/

# home.nix
xdg.configFile = {
  "gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
  "gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
  "gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
    };
$ lla ~/.config/gtk-4.0
Permissions Size User     Date Modified Name
lrwxrwxrwx     - ravenz46 10 Aug 11:27   assets -> /nix/store/923zm5h4blb4azhvnf28qfypfb51d6p5-home-manager-files/.config/gtk-4.0/assets
lrwxrwxrwx     - ravenz46 10 Aug 11:27   gtk-dark.css -> /nix/store/923zm5h4blb4azhvnf28qfypfb51d6p5-home-manager-files/.config/gtk-4.0/gtk-dark.css
lrwxrwxrwx     - ravenz46 10 Aug 11:27   settings.ini -> /nix/store/923zm5h4blb4azhvnf28qfypfb51d6p5-home-manager-files/.config/gtk-4.0/settings.ini

$ lla /nix/store/923zm5h4blb4azhvnf28qfypfb51d6p5-home-manager-files/.config/gtk-4.0/
Permissions Size User Date Modified Name
lrwxrwxrwx     - root  1 Jan  1970   assets -> /nix/store/nx7ycp0rlsa30s0llc3gw18g4vbk3kz5-magnetic-catppuccin-gtk-0-unstable-2024-06-27/share/themes/Catppuccin-GTK-Green-Dark/gtk-4.0/assets
lrwxrwxrwx     - root  1 Jan  1970   gtk-dark.css -> /nix/store/nx7ycp0rlsa30s0llc3gw18g4vbk3kz5-magnetic-catppuccin-gtk-0-unstable-2024-06-27/share/themes/Catppuccin-GTK-Green-Dark/gtk-4.0/gtk-dark.css
lrwxrwxrwx     - root  1 Jan  1970   gtk.css -> /nix/store/nx7ycp0rlsa30s0llc3gw18g4vbk3kz5-magnetic-catppuccin-gtk-0-unstable-2024-06-27/share/themes/Catppuccin-GTK-Green-Dark/gtk-4.0/gtk.css
lrwxrwxrwx     - root  1 Jan  1970   settings.ini -> /nix/store/icdg8gb5ss86rxsjik80123yqqnx80zw-hm_gtk4.0settings.ini

$ lla /nix/store/nx7ycp0rlsa30s0llc3gw18g4vbk3kz5-magnetic-catppuccin-gtk-0-unstable-2024-06-27/share/themes/Catppuccin-GTK-Green-Dark-Compact/gtk-4.0/
Permissions Size User Date Modified Name
dr-xr-xr-x     - root  1 Jan  1970   assets
lrwxrwxrwx     - root  1 Jan  1970   gtk-dark.css -> gtk.css
.r--r--r--  235k root  1 Jan  1970   gtk.css
lrwxrwxrwx     - root  1 Jan  1970   thumbnail.png -> ../gtk-3.0/thumbnail.png

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.10.3, NixOS, 24.11 (Vicuna), 24.11.20240804.cb9a96f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - nixpkgs: `/nix/store/4cpakzyvfw1rmm9v5i3387x6jd2h1v86-source`
RAVENz46 commented 3 months ago

Sorry, it seems like cosmic-de side problem https://github.com/lilyinstarlight/nixos-cosmic/issues/257 .