fork/home-manager

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

Robert Helgessontests: add option `test.stubs`cb09a968

master
1.1 KiB55 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs.starship = {
8      enable = true;
9
10      settings = mkMerge [
11        {
12          add_newline = false;
13          format = concatStrings [
14            "$line_break"
15            "$package"
16            "$line_break"
17            "$character"
18          ];
19          scan_timeout = 10;
20          character = {
21            success_symbol = "➜";
22            error_symbol = "➜";
23          };
24          package.disabled = true;
25          memory_usage.threshold = -1;
26          aws.style = "bold blue";
27          battery = {
28            charging_symbol = "⚡️";
29            display = [{
30              threshold = 10;
31              style = "bold red";
32            }];
33          };
34        }
35
36        {
37          aws.disabled = true;
38
39          battery.display = [{
40            threshold = 30;
41            style = "bold yellow";
42          }];
43        }
44      ];
45    };
46
47    test.stubs.starship = { };
48
49    nmt.script = ''
50      assertFileContent \
51        home-files/.config/starship.toml \
52        ${./settings-expected.toml}
53    '';
54  };
55}