mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +01:00
cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
34 lines
894 B
Nix
34 lines
894 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
programs.bash.enable = true;
|
|
programs.fish.enable = true;
|
|
programs.zsh.enable = true;
|
|
|
|
programs.command-not-found.enable = true;
|
|
|
|
# Needed to avoid error with dummy fish package.
|
|
xdg.dataFile."fish/home-manager_generated_completions".source =
|
|
lib.mkForce (builtins.toFile "empty" "");
|
|
|
|
test.stubs = {
|
|
zsh = { };
|
|
fish = { };
|
|
};
|
|
|
|
programs.nix-index.enable = true;
|
|
|
|
# 'command-not-found' does not have a 'fish' integration
|
|
test.asserts.assertions.expected = [
|
|
''
|
|
The 'programs.command-not-found.enable' option is mutually exclusive
|
|
with the 'programs.nix-index.enableBashIntegration' option.
|
|
''
|
|
''
|
|
The 'programs.command-not-found.enable' option is mutually exclusive
|
|
with the 'programs.nix-index.enableZshIntegration' option.
|
|
''
|
|
];
|
|
};
|
|
}
|