fork/home-manager

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

arjan-spls: add module (#3285)e7be7c46

master
591 B29 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs = {
8      bash.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.pls = { };
18
19    nmt.script = ''
20      assertFileExists home-files/.bashrc
21      assertFileContains \
22        home-files/.bashrc \
23        "alias ls='@pls@/bin/pls'"
24      assertFileContains \
25        home-files/.bashrc \
26        "alias ll='@pls@/bin/pls -d perms -d user -d group -d size -d mtime -d git'"
27    '';
28  };
29}