mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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
26 lines
540 B
Nix
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'
|
|
'';
|
|
}
|