2020-02-29 22:17:47 +01:00
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
config = {
|
|
|
|
|
programs.starship = {
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
settings = mkMerge [
|
|
|
|
|
{
|
|
|
|
|
add_newline = false;
|
2020-12-21 21:54:59 +01:00
|
|
|
|
format = concatStrings [
|
|
|
|
|
"$line_break"
|
|
|
|
|
"$package"
|
|
|
|
|
"$line_break"
|
|
|
|
|
"$character"
|
|
|
|
|
];
|
2020-02-29 22:17:47 +01:00
|
|
|
|
scan_timeout = 10;
|
2021-01-02 21:08:23 +01:00
|
|
|
|
character = {
|
|
|
|
|
success_symbol = "➜";
|
|
|
|
|
error_symbol = "➜";
|
|
|
|
|
};
|
2020-02-29 22:17:47 +01:00
|
|
|
|
package.disabled = true;
|
|
|
|
|
memory_usage.threshold = -1;
|
|
|
|
|
aws.style = "bold blue";
|
|
|
|
|
battery = {
|
|
|
|
|
charging_symbol = "⚡️";
|
|
|
|
|
display = [{
|
|
|
|
|
threshold = 10;
|
|
|
|
|
style = "bold red";
|
|
|
|
|
}];
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
aws.disabled = true;
|
|
|
|
|
|
|
|
|
|
battery.display = [{
|
|
|
|
|
threshold = 30;
|
|
|
|
|
style = "bold yellow";
|
|
|
|
|
}];
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
|
(self: super: { starship = pkgs.writeScriptBin "dummy-starship" ""; })
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
|
assertFileContent \
|
|
|
|
|
home-files/.config/starship.toml \
|
|
|
|
|
${./settings-expected.toml}
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
}
|