sxiv: add testbed (#1190)
Link: https://github.com/danth/stylix/pull/1190 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
a2b80b9006
commit
965865bc36
1 changed files with 23 additions and 0 deletions
23
modules/sxiv/testbeds/default.nix
Normal file
23
modules/sxiv/testbeds/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
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}
|
||||
'';
|
||||
|
||||
home-manager.sharedModules = lib.singleton {
|
||||
home.packages = [ package ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue