1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/tests/modules/programs/tofi/basic-configuration.nix

29 lines
637 B
Nix
Raw Normal View History

2024-04-16 22:44:55 +02:00
{ config, pkgs, ... }: {
config = {
programs.tofi = {
enable = true;
package = pkgs.tofi;
settings = {
background-color = "#000000";
border-width = 0;
font = "monospace";
height = "100%";
num-results = 5;
outline-width = 0;
padding-left = "35%";
padding-top = "35%";
result-spacing = 25;
width = "100%";
};
};
test.stubs.tofi = { };
nmt.script = ''
assertFileExists home-files/.config/tofi/config
assertFileContent home-files/.config/tofi/config \
${./basic-configuration.conf}
'';
};
}