mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
28 lines
447 B
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
|
|
];
|
|
}
|