helm/modules/desktop/rofi.nix

29 lines
651 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
environment = {
systemPackages = with pkgs; [
(writeScriptBin "rofi" ''
#!${stdenv.shell}
exec ${rofi}/bin/rofi -terminal xst -m -1 "$@"
'')
rofi
(makeDesktopItem {
name = "browsermenu";
desktopName = "Open Bookmark in Firefox";
icon = "firefox";
exec = "rofi-browsermenu";
categories = "Network";
})
];
# shellAliases = {};
};
home-manager.users.hlissner.xdg.configFile = {
# link recursively so other modules can link files in its folder
"rofi" = { source = <config/rofi>; recursive = true; };
};
}