1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 16:59:43 +01:00
home-manager/tests/modules/programs/granted/integration-disabled.nix
Willi Carlsen 454e8d6b15
granted: use assume directly
The `.assume-wrapped` path is not available since the merge of

    https://github.com/NixOS/nixpkgs/pull/347816

Use assume directly instead.

PR #5994
2024-10-25 09:42:19 +02:00

27 lines
582 B
Nix

{ pkgs, ... }:
{
programs = {
granted.enable = true;
granted.enableZshIntegration = false;
zsh.enable = true;
};
test.stubs.granted = { };
nmt.script = ''
assertFileExists home-files/.zshrc
assertFileNotRegex \
home-files/.zshrc \
'function assume()'
assertFileNotRegex \
home-files/.zshrc \
'export GRANTED_ALIAS_CONFIGURED="true"'
assertFileNotRegex \
home-files/.zshrc \
'source @granted@/bin/assume "$@"'
assertFileNotRegex \
home-files/.zshrc \
'unset GRANTED_ALIAS_CONFIGURED'
'';
}