mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-06 09:01:04 +01:00
rtx: add module (#4051)
This commit is contained in:
parent
28614ed7a1
commit
3512a6dafb
10 changed files with 193 additions and 0 deletions
16
tests/modules/programs/rtx/bash-integration.nix
Normal file
16
tests/modules/programs/rtx/bash-integration.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ config, ... }: {
|
||||
programs = {
|
||||
rtx = {
|
||||
package = config.lib.test.mkStubPackage { name = "rtx"; };
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
bash.enable = true;
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileRegex home-files/.bashrc 'eval "$(/nix/store/.*rtx.*/bin/rtx activate bash)"'
|
||||
'';
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue