tofi: add module
This commit is contained in:
parent
f3506ba86c
commit
8ff7bb3f4d
8 changed files with 120 additions and 0 deletions
12
tests/modules/programs/tofi/basic-configuration.conf
Normal file
12
tests/modules/programs/tofi/basic-configuration.conf
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Generated by Home Manager.
|
||||
|
||||
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%
|
||||
28
tests/modules/programs/tofi/basic-configuration.nix
Normal file
28
tests/modules/programs/tofi/basic-configuration.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ 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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
1
tests/modules/programs/tofi/default.nix
Normal file
1
tests/modules/programs/tofi/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ tofi-basic-configuration = ./basic-configuration.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue