1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-09 12:49:44 +01:00
home-manager/tests/modules/programs/rtx/zsh-integration.nix

17 lines
321 B
Nix
Raw Normal View History

2023-06-07 10:32:56 +02:00
{ config, ... }: {
programs = {
rtx = {
package = config.lib.test.mkStubPackage { name = "rtx"; };
enable = true;
enableZshIntegration = true;
};
zsh.enable = true;
};
nmt.script = ''
assertFileRegex home-files/.zshrc 'eval "$(/nix/store/.*rtx.*/bin/rtx activate zsh)"'
'';
}