nixos-config/wrappers/rofi/default.nix

28 lines
447 B
Nix

{ assembleWrapper, moduleArgs, ... }:
let
inherit (moduleArgs) pkgs;
in
{
theme ? "dark",
}:
assembleWrapper {
basePackage = pkgs.rofi-wayland;
flags =
let
color-file =
{
dark = ./dark.rasi;
light = ./light.rasi;
}
.${theme};
rofi-config = pkgs.concatText "rofi-config" [
./config.rasi
color-file
];
in
[
"-config"
rofi-config
];
}