fork/home-manager

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

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

master
874 B37 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        modulesRight = [ "git" ];
15        pathAliases = { "\\~/project/foo" = "prj-foo"; };
16        settings = {
17          ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
18        };
19      };
20    };
21
22    test.stubs = {
23      powerline-go = { };
24      zsh = { };
25    };
26
27    nmt.script = ''
28      assertFileExists home-files/.zshrc
29      assertFileContains \
30        home-files/.zshrc \
31        'eval'
32      assertFileContains \
33        home-files/.zshrc \
34        '/bin/powerline-go -error $? -shell zsh -eval -modules nix-shell -modules-right git -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
35    '';
36  };
37}