mirror of
https://github.com/nix-community/home-manager
synced 2024-11-15 07:39:46 +01:00
29 lines
667 B
Nix
29 lines
667 B
Nix
|
{ 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" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.bashrc
|
||
|
assertFileContains \
|
||
|
home-files/.bashrc \
|
||
|
'/bin/powerline-go -error $? -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
|
||
|
'';
|
||
|
};
|
||
|
}
|