fork/home-manager

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

mat essfish: always run fish_indent7e81e7ae

master
808 B33 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs = {
8      fish.enable = true;
9
10      pls = {
11        enable = true;
12        enableAliases = true;
13        package = config.lib.test.mkStubPackage { outPath = "@pls@"; };
14      };
15    };
16
17    # Needed to avoid error with dummy fish package.
18    xdg.dataFile."fish/home-manager_generated_completions".source =
19      mkForce (builtins.toFile "empty" "");
20
21    test.stubs.pls = { };
22
23    nmt.script = ''
24      assertFileExists home-files/.config/fish/config.fish
25      assertFileContains \
26        home-files/.config/fish/config.fish \
27        "alias ls '@pls@/bin/pls'"
28      assertFileContains \
29        home-files/.config/fish/config.fish \
30        "alias ll '@pls@/bin/pls -d perms -d user -d group -d size -d mtime -d git'"
31    '';
32  };
33}