mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Generate the Rasi configuration block from merged native settings. Preserve legacy option conversions, overlay precedence, numeric defaults, and theme ordering. Use the shared settings overlay helper for extraConfig forwarding and key detection. Keep package integration and the existing serializer unchanged.
27 lines
599 B
Nix
27 lines
599 B
Nix
{ config, lib, ... }:
|
|
{
|
|
programs.rofi = {
|
|
enable = true;
|
|
configPath = "${config.xdg.configHome}/rofi/alternate.rasi";
|
|
theme = "Arc";
|
|
settings = lib.mkDefault {
|
|
location = 2;
|
|
font = "monospace 12";
|
|
cycle = null;
|
|
modes = [
|
|
"drun"
|
|
"custom:/some/script"
|
|
];
|
|
matching = "normal";
|
|
filebrowser = {
|
|
directories-first = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent home-files/.config/rofi/alternate.rasi ${./basic-configuration.rasi}
|
|
assertPathNotExists home-files/.config/rofi/config.rasi
|
|
'';
|
|
}
|