fork/home-manager

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

mat essfish: always run fish_indent7e81e7ae

master
932 B34 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs = {
8      fish.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    # Needed to avoid error with dummy fish package.
22    xdg.dataFile."fish/home-manager_generated_completions".source =
23      mkForce (builtins.toFile "empty" "");
24
25    test.stubs.powerline-go = { };
26
27    nmt.script = ''
28      assertFileExists home-files/.config/fish/config.fish
29      assertFileContains \
30        home-files/.config/fish/config.fish \
31        '/bin/powerline-go -error $status -jobs (count (jobs -p)) -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
32    '';
33  };
34}