1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
home-manager/tests/modules/programs/carapace/fish.nix

21 lines
617 B
Nix
Raw Normal View History

{ config, lib, realPkgs, ... }:
2023-09-03 12:09:45 +02:00
lib.mkIf config.test.enableBig {
2023-09-03 12:09:45 +02:00
programs = {
carapace.enable = true;
fish.enable = true;
};
nixpkgs.overlays = [ (self: super: { inherit (realPkgs) carapace; }) ];
2023-09-03 12:09:45 +02:00
nmt.script = ''
assertFileExists home-files/.config/fish/config.fish
assertFileRegex home-files/.config/fish/config.fish \
'/nix/store/.*carapace.*/bin/carapace _carapace fish \| source'
# Check whether completions are overridden.
assertFileExists home-files/.config/fish/completions/git.fish
assertFileContent home-files/.config/fish/completions/git.fish /dev/null
'';
}