mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
36 lines
735 B
Nix
36 lines
735 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
wrapperManagerLib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
build.variant = "shell";
|
|
|
|
wrappers.fastfetch = {
|
|
arg0 = lib.getExe' pkgs.fastfetch "fastfetch";
|
|
appendArgs = [
|
|
"--logo"
|
|
"Guix"
|
|
];
|
|
env.NO_COLOR.value = "1";
|
|
xdg.desktopEntry.enable = true;
|
|
};
|
|
|
|
environment.pathAdd = wrapperManagerLib.getBin (with pkgs; [
|
|
hello
|
|
]);
|
|
|
|
build.extraPassthru.wrapperManagerTests = {
|
|
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
|
|
'';
|
|
};
|
|
}
|