nichts/modules/runners/rofi/default.nix

33 lines
762 B
Nix
Raw Normal View History

2024-07-13 22:08:21 +02:00
{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
2024-07-21 20:14:19 +02:00
cfg = config.modules.usrEnv.programs.launchers.rofi;
inherit (lib) mkIf;
2024-07-13 22:08:21 +02:00
in {
2024-07-21 20:14:19 +02:00
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
location = "center";
extraConfig = {
modi = "drun,filebrowser";
drun-display-format = " {name} ";
sidebar-mode = true;
matching = "prefix";
scoll-method = 0;
disable_history = false;
show-icons = true;
display-drun = " Run";
display-run = " Run";
display-filebrowser = " Files";
2024-07-13 22:08:21 +02:00
};
};
};
};
}