mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
Adds `programs.rofi.modes` option. For the tiny convenience of supporting the custom mode syntax.
32 lines
616 B
Nix
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}
|
|
'';
|
|
}
|