sxiv: avoid downloading custom file in testbed (#1641)

Fixes: 965865bc36 ("sxiv: add testbed (#1190)")
Link: https://github.com/nix-community/stylix/pull/1641

Reviewed-by: Mateus Auler <mateus@auler.dev>
This commit is contained in:
NAHO 2025-07-08 22:54:11 +02:00 committed by GitHub
parent 8f3259dbc5
commit 8b898ca041
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,18 +4,13 @@ let
package = pkgs.nsxiv;
in
{
stylix.testbed.ui.command.text =
let
image = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/4ad062cee62116f6055e2876e9638e7bb399d219/logo/nixos.svg.png";
hash = "sha256-9+OfqfP5LmubdTcwBkS/AnOX4wZI2tKHLu5nhi43xcc=";
};
in
''
# Xresources isn't loaded by default, so we force it
${lib.getExe pkgs.xorg.xrdb} ~/.Xresources
${lib.getExe package} ${image}
'';
stylix.testbed.ui.command.text = ''
# Xresources isn't loaded by default, so we force it
${lib.getExe pkgs.xorg.xrdb} ~/.Xresources
${lib.getExe package} \
"${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
'';
home-manager.sharedModules = lib.singleton {
home.packages = [ package ];