mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
30 lines
418 B
Nix
30 lines
418 B
Nix
{
|
|
assembleWrapper,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
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
|
|
];
|
|
}
|