1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-10 02:59:49 +01:00
home-manager/tests/modules/programs/rofi/valid-config.nix
Shahar "Dawn" Or e3d18bf7bf rofi: modes option
Adds `programs.rofi.modes` option.
For the tiny convenience of supporting the custom mode syntax.
2024-11-22 12:57:59 +07:00

40 lines
760 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.rofi = {
enable = true;
font = "Droid Sans Mono 14";
terminal = "/some/path";
cycle = false;
modes = [
"drun"
"emoji"
"ssh"
{
name = "foo";
path = "bar";
}
];
window = {
background = "background";
border = "border";
separator = "separator";
};
extraConfig = {
kb-primary-paste = "Control+V,Shift+Insert";
kb-secondary-paste = "Control+v,Insert";
};
};
test.stubs.rofi = { };
nmt.script = ''
assertFileContent \
home-files/.config/rofi/config.rasi \
${./valid-config-expected.rasi}
'';
};
}