helm/modules/desktop/rofi.nix
2019-12-08 17:02:41 -05:00

29 lines
651 B
Nix

{ 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; };
};
}