2024-07-24 12:48:42 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
|
|
|
|
starship = {
|
|
|
|
enable = true;
|
|
|
|
enableInteractive = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/fish/config.fish
|
|
|
|
|
|
|
|
export GOT="$(tail -n 5 `_abs home-files/.config/fish/config.fish`)"
|
|
|
|
export EXPECTED="
|
|
|
|
if test \"\$TERM\" != dumb
|
2024-07-24 19:40:22 +02:00
|
|
|
/home/hm-user/.nix-profile/bin/starship init fish | source
|
2024-07-24 12:48:42 +02:00
|
|
|
|
|
|
|
end"
|
|
|
|
|
|
|
|
export MESSAGE="
|
|
|
|
==========
|
|
|
|
Expected
|
|
|
|
==========
|
|
|
|
$EXPECTED
|
|
|
|
==========
|
|
|
|
Got
|
|
|
|
==========
|
|
|
|
$GOT
|
|
|
|
==========
|
|
|
|
"
|
|
|
|
|
|
|
|
if [[ "$GOT" != "$EXPECTED" ]]; then
|
|
|
|
fail "$MESSAGE"
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|