mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
19 lines
542 B
Nix
19 lines
542 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
wrappers.fastfetch = {
|
||
|
arg0 = lib.getExe' pkgs.fastfetch "fastfetch";
|
||
|
appendArgs = [ "--logo" "Guix" ];
|
||
|
env.NO_COLOR = "1";
|
||
|
xdg.desktopEntry.enable = true;
|
||
|
};
|
||
|
|
||
|
build.extraPassthru.tests = {
|
||
|
actuallyBuilt = let
|
||
|
wrapper = config.build.toplevel;
|
||
|
in pkgs.runCommand "wrapper-manager-fastfetch-actually-built" { } ''
|
||
|
[ -e "${wrapper}/share/applications/fastfetch.desktop" ] && [ -x "${wrapper}/bin/${config.wrappers.fastfetch.executableName}" ] && touch $out
|
||
|
'';
|
||
|
};
|
||
|
}
|