mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 19:29:47 +01:00
454e8d6b15
The `.assume-wrapped` path is not available since the merge of https://github.com/NixOS/nixpkgs/pull/347816 Use assume directly instead. PR #5994
27 lines
582 B
Nix
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'
|
|
'';
|
|
}
|