hyfetch: add module
This commit is contained in:
parent
7146638e9e
commit
d1c677ac25
8 changed files with 92 additions and 0 deletions
1
tests/modules/programs/hyfetch/default.nix
Normal file
1
tests/modules/programs/hyfetch/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ hyfetch-settings = ./settings.nix; }
|
||||
11
tests/modules/programs/hyfetch/hyfetch.json
Normal file
11
tests/modules/programs/hyfetch/hyfetch.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"color_align": {
|
||||
"custom_colors": [],
|
||||
"fore_back": null,
|
||||
"mode": "horizontal"
|
||||
},
|
||||
"light_dark": "dark",
|
||||
"lightness": 0.5,
|
||||
"mode": "rgb",
|
||||
"preset": "rainbow"
|
||||
}
|
||||
25
tests/modules/programs/hyfetch/settings.nix
Normal file
25
tests/modules/programs/hyfetch/settings.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.hyfetch = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
preset = "rainbow";
|
||||
mode = "rgb";
|
||||
light_dark = "dark";
|
||||
lightness = 0.5;
|
||||
color_align = {
|
||||
mode = "horizontal";
|
||||
custom_colors = [ ];
|
||||
fore_back = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs.hyfetch = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/.config/hyfetch.json ${./hyfetch.json}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue