2020-05-29 17:54:38 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs = {
|
|
|
|
bash.enable = true;
|
|
|
|
|
|
|
|
powerline-go = {
|
|
|
|
enable = true;
|
|
|
|
newline = true;
|
|
|
|
modules = [ "nix-shell" ];
|
|
|
|
pathAliases = { "\\~/project/foo" = "prj-foo"; };
|
|
|
|
settings = {
|
|
|
|
ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-05-09 12:23:44 +02:00
|
|
|
nixpkgs.overlays =
|
|
|
|
[ (self: super: { powerline-go = pkgs.writeScriptBin "dummy-pkg" ""; }) ];
|
|
|
|
|
2020-05-29 17:54:38 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.bashrc
|
|
|
|
assertFileContains \
|
|
|
|
home-files/.bashrc \
|
2020-06-29 07:18:32 +02:00
|
|
|
'/bin/powerline-go -error $old_exit_status -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
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|