tofi: add module

This commit is contained in:
Henri Sota 2024-04-16 22:44:55 +02:00 committed by Robert Helgesson
parent f3506ba86c
commit 8ff7bb3f4d
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
8 changed files with 120 additions and 0 deletions

View 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%

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

View file

@ -0,0 +1 @@
{ tofi-basic-configuration = ./basic-configuration.nix; }