1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00
home-manager/tests/modules/programs/granted/integration-enabled.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

26 lines
540 B
Nix

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