1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
home-manager/tests/modules/programs/fastfetch/basic-configuration.nix
2024-05-02 03:44:19 +02:00

40 lines
802 B
Nix

{
programs.fastfetch = {
enable = true;
settings = {
logo = {
source = "nixos_small";
padding = { right = 1; };
};
display = {
binaryPrefix = "si";
color = "blue";
separator = " ";
};
modules = [
{
type = "datetime";
key = "Date";
format = "{1}-{3}-{11}";
}
{
type = "datetime";
key = "Time";
format = "{14}:{17}:{20}";
}
"break"
"player"
"media"
];
};
};
test.stubs.fastfetch = { };
nmt.script = let config-file = "home-files/.config/fastfetch/config.jsonc";
in ''
assertFileExists "${config-file}"
assertFileContent "${config-file}" ${./basic-configuration.jsonc}
'';
}