1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-03 03:48:31 +02:00
home-manager/tests/modules/programs/antidote/antidote.nix
hitsmaxft 2f78e6fcba
antidote: static file move to /tmp
Make antidote create static file path with hm hash_id in /tmp.
2023-07-05 08:30:58 +02:00

29 lines
676 B
Nix

{ pkgs, ... }:
let relToDotDirCustom = ".zshplugins";
in {
programs.zsh = {
enable = true;
dotDir = relToDotDirCustom;
antidote = {
enable = true;
useFriendlyNames = true;
plugins = [ "zsh-users/zsh-autosuggestions" ];
};
};
test.stubs = {
antidote = { };
zsh = { };
};
nmt.script = ''
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
'source @antidote@/share/antidote/antidote.zsh'
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
'antidote load'
assertFileContains home-files/${relToDotDirCustom}/.zshrc \
"zstyle ':antidote:bundle' use-friendly-names 'yes'"
'';
}