mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 17:19:45 +01:00
35 lines
859 B
Nix
35 lines
859 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs = {
|
||
|
bash.enable = true;
|
||
|
|
||
|
powerline-go = {
|
||
|
enable = true;
|
||
|
newline = true;
|
||
|
modules = [ "nix-shell" ];
|
||
|
modulesRight = [ "git" ];
|
||
|
pathAliases = { "\\~/project/foo" = "prj-foo"; };
|
||
|
settings = {
|
||
|
ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
test.stubs.powerline-go = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.bashrc
|
||
|
assertFileContains \
|
||
|
home-files/.bashrc \
|
||
|
'eval'
|
||
|
assertFileContains \
|
||
|
home-files/.bashrc \
|
||
|
'/bin/powerline-go -error $old_exit_status -shell bash -eval -modules nix-shell -modules-right git -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
|
||
|
'';
|
||
|
};
|
||
|
}
|