fuzzel: add module

This commit is contained in:
Sefa Eyeoglu 2023-03-01 15:57:55 +01:00 committed by Robert Helgesson
parent 9384997717
commit e0026e16a5
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
9 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{
fuzzel-example-settings = ./example-settings.nix;
fuzzel-empty-settings = ./empty-settings.nix;
}

View file

@ -0,0 +1,11 @@
{ ... }:
{
programs.fuzzel.enable = true;
test.stubs.fuzzel = { };
nmt.script = ''
assertPathNotExists home-files/.config/fuzzel
'';
}

View file

@ -0,0 +1,6 @@
[border]
width=6
[main]
dpi-aware=yes
font=Fira Code:size=11

View 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}
'';
}