mirror of
https://github.com/nix-community/home-manager
synced 2024-12-29 13:19:47 +01:00
28 lines
598 B
Nix
28 lines
598 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs = {
|
||
|
fish.enable = true;
|
||
|
starship.enable = true;
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.config/fish/config.fish
|
||
|
|
||
|
export GOT="$(tail -n 5 `_abs home-files/.config/fish/config.fish`)"
|
||
|
export NOT_EXPECTED="
|
||
|
if test \"\$TERM\" != dumb
|
||
|
/home/hm-user/.nix-profile/bin/starship init fish | source
|
||
|
|
||
|
end"
|
||
|
|
||
|
if [[ "$GOT" == "$NOT_EXPECTED" ]]; then
|
||
|
fail "Expected starship init to be inside the 'is-interactive' block but it wasn't."
|
||
|
fi
|
||
|
'';
|
||
|
};
|
||
|
}
|