mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-15 13:31:07 +01:00
sherlock: init module
Creating a sherlock module for the sherlock launcher. Prefer a file be controlled by a single option and using settings for the main config file. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
f0d81a415d
commit
a379077675
14 changed files with 586 additions and 0 deletions
19
tests/modules/programs/sherlock/basic-configuration.nix
Normal file
19
tests/modules/programs/sherlock/basic-configuration.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
programs.sherlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "dark";
|
||||
width = 500;
|
||||
max_results = 8;
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script =
|
||||
let
|
||||
configFile = "home-files/.config/sherlock/config.toml";
|
||||
in
|
||||
''
|
||||
assertFileExists "${configFile}"
|
||||
assertFileContent "${configFile}" ${./basic-configuration.toml}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue