1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/tests/modules/programs/powerline-go/zsh.nix

36 lines
848 B
Nix
Raw Normal View History

2020-05-29 17:54:38 +02:00
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs = {
2020-11-01 18:27:47 +01:00
zsh.enable = true;
2020-05-29 17:54:38 +02:00
powerline-go = {
enable = true;
newline = true;
modules = [ "nix-shell" ];
pathAliases = { "\\~/project/foo" = "prj-foo"; };
settings = {
ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
};
};
};
nixpkgs.overlays = [
(self: super: {
powerline-go = pkgs.writeScriptBin "dummy-pkg" "";
zsh = pkgs.writeScriptBin "dummy-pkg" "";
})
];
2020-11-01 18:27:47 +01:00
2020-05-29 17:54:38 +02:00
nmt.script = ''
2020-11-01 18:27:47 +01:00
assertFileExists home-files/.zshrc
2020-05-29 17:54:38 +02:00
assertFileContains \
2020-11-01 18:27:47 +01:00
home-files/.zshrc \
'/bin/powerline-go -error $? -shell zsh -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
2020-05-29 17:54:38 +02:00
'';
};
}