1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
home-manager/tests/modules/programs/rofi/valid-config.nix
Shahar "Dawn" Or cea975d46d
rofi: modes option (#6115)
Adds `programs.rofi.modes` option.
For the tiny convenience of supporting the custom mode syntax.
2025-05-08 08:16:34 -05:00

32 lines
616 B
Nix

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