mirror of
https://github.com/nix-community/home-manager
synced 2024-12-29 13:19:47 +01:00
27 lines
549 B
Nix
27 lines
549 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-wrapped "$@"'
|
||
|
assertFileContains \
|
||
|
home-files/.zshrc \
|
||
|
'unset GRANTED_ALIAS_CONFIGURED'
|
||
|
'';
|
||
|
}
|