1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-04 16:11:06 +01:00
home-manager/tests/modules/programs/antidote/antidote.nix
Austin Horstman a1b7e7f510 tests/antidote: remove deprecated relative path usage
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-28 14:47:42 -05:00

25 lines
677 B
Nix

{ config, ... }:
let
dotDirCustom = "${config.home.homeDirectory}/.config/zsh";
relToDotDirCustom = ".config/zsh";
in
{
programs.zsh = {
enable = true;
dotDir = dotDirCustom;
antidote = {
enable = true;
useFriendlyNames = true;
plugins = [ "zsh-users/zsh-autosuggestions" ];
};
};
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'"
'';
}