mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
30 lines
594 B
Nix
30 lines
594 B
Nix
{ inputs, pkgs, ... }:
|
|
{
|
|
theme ? "dark",
|
|
}:
|
|
(inputs.wrapper-manager.lib {
|
|
inherit pkgs;
|
|
modules = [
|
|
{
|
|
wrappers.rofi = {
|
|
basePackage = pkgs.rofi-wayland;
|
|
flags =
|
|
let
|
|
theming =
|
|
{
|
|
dark = ./dark-theme.rasi;
|
|
light = ./light-theme.rasi;
|
|
}
|
|
.${theme};
|
|
in
|
|
[
|
|
"-config"
|
|
(pkgs.concatText "rofi-config" [
|
|
./config.rasi
|
|
theming
|
|
])
|
|
];
|
|
};
|
|
}
|
|
];
|
|
}).config.wrappers.rofi.wrapped
|