fork/home-manager

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

arjan-spls: add module (#3285)e7be7c46

master
621 B32 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs = {
8      zsh.enable = true;
9
10      pls = {
11        enable = true;
12        enableAliases = true;
13        package = config.lib.test.mkStubPackage { outPath = "@pls@"; };
14      };
15    };
16
17    test.stubs = {
18      pls = { };
19      zsh = { };
20    };
21
22    nmt.script = ''
23      assertFileExists home-files/.zshrc
24      assertFileContains \
25        home-files/.zshrc \
26        "alias ls='@pls@/bin/pls'"
27      assertFileContains \
28        home-files/.zshrc \
29        "alias ll='@pls@/bin/pls -d perms -d user -d group -d size -d mtime -d git'"
30    '';
31  };
32}