fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Benoit Louypowerline-go: add support for -modules-rightf46972e4

master
815 B36 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs = {
8      zsh.enable = true;
9
10      powerline-go = {
11        enable = true;
12        newline = true;
13        modules = [ "nix-shell" ];
14        pathAliases = { "\\~/project/foo" = "prj-foo"; };
15        settings = {
16          ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
17        };
18      };
19    };
20
21    test.stubs = {
22      powerline-go = { };
23      zsh = { };
24    };
25
26    nmt.script = ''
27      assertFileExists home-files/.zshrc
28      assertFileContains \
29        home-files/.zshrc \
30        'PS1='
31      assertFileContains \
32        home-files/.zshrc \
33        '/bin/powerline-go -error $? -shell zsh -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
34    '';
35  };
36}