hyprlauncher: add module
This commit is contained in:
parent
ccd22c13b2
commit
2e02e22e28
4 changed files with 127 additions and 0 deletions
5
tests/modules/services/hyprlauncher/default.nix
Normal file
5
tests/modules/services/hyprlauncher/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
hyprlauncher-settings = ./settings.nix;
|
||||
}
|
||||
16
tests/modules/services/hyprlauncher/hyprlauncher.conf
Normal file
16
tests/modules/services/hyprlauncher/hyprlauncher.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
cache {
|
||||
enabled=true
|
||||
}
|
||||
|
||||
finders {
|
||||
desktop_icons=true
|
||||
math_prefix==
|
||||
}
|
||||
|
||||
general {
|
||||
grab_focus=true
|
||||
}
|
||||
|
||||
ui {
|
||||
window_size=400 260
|
||||
}
|
||||
20
tests/modules/services/hyprlauncher/settings.nix
Normal file
20
tests/modules/services/hyprlauncher/settings.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
services.hyprlauncher = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general.grab_focus = true;
|
||||
cache.enabled = true;
|
||||
ui.window_size = "400 260";
|
||||
finders = {
|
||||
math_prefix = "=";
|
||||
desktop_icons = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/hypr/hyprlauncher.conf
|
||||
assertFileContent home-files/.config/hypr/hyprlauncher.conf \
|
||||
${./hyprlauncher.conf}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue