summaryrefslogtreecommitdiff
path: root/home/apps/rofi/default.nix
blob: 80c88a2a94ea7fb8946c705d71f7c98355b0469e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  lib,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  theme = config.theme;
  cfg = config.apps.rofi;
in {
  config = mkIf cfg.enable {
    default.appLauncher = lib.mkOverride 700 "rofi -show drun";

    home.packages = [
      pkgs.rofi
    ];

    home.file = {
      ".config/rofi/config.rasi".source = ./config.rasi;
      ".config/rofi/theme.rasi".text = import ./theme.nix {inherit theme;};
    };
  };
}