mirror of
https://github.com/nix-community/home-manager
synced 2025-01-10 02:59:49 +01:00
e3d18bf7bf
Adds `programs.rofi.modes` option. For the tiny convenience of supporting the custom mode syntax.
40 lines
760 B
Nix
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}
|
|
'';
|
|
};
|
|
}
|