fuzzel: add module
This commit is contained in:
parent
9384997717
commit
e0026e16a5
9 changed files with 109 additions and 0 deletions
4
tests/modules/programs/fuzzel/default.nix
Normal file
4
tests/modules/programs/fuzzel/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
fuzzel-example-settings = ./example-settings.nix;
|
||||
fuzzel-empty-settings = ./empty-settings.nix;
|
||||
}
|
||||
11
tests/modules/programs/fuzzel/empty-settings.nix
Normal file
11
tests/modules/programs/fuzzel/empty-settings.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.fuzzel.enable = true;
|
||||
|
||||
test.stubs.fuzzel = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/fuzzel
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[border]
|
||||
width=6
|
||||
|
||||
[main]
|
||||
dpi-aware=yes
|
||||
font=Fira Code:size=11
|
||||
23
tests/modules/programs/fuzzel/example-settings.nix
Normal file
23
tests/modules/programs/fuzzel/example-settings.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.fuzzel = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage { };
|
||||
|
||||
settings = {
|
||||
main = {
|
||||
font = "Fira Code:size=11";
|
||||
dpi-aware = "yes";
|
||||
};
|
||||
|
||||
border = { width = 6; };
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/fuzzel/fuzzel.ini \
|
||||
${./example-settings-expected.ini}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue