-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.nix
More file actions
15 lines (13 loc) · 573 Bytes
/
default.nix
File metadata and controls
15 lines (13 loc) · 573 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs, config, lib, ... }:
let
helpers = import ../../../helpers { inherit lib; };
mainBrowser = builtins.head config.var.browsers;
mainBrowserIcon = helpers.getOrBasename helpers.browserIconMap mainBrowser;
mainBrowserBinary =
helpers.getOrBasename helpers.browserBinaryMap mainBrowser;
commandPalette = pkgs.writeShellScriptBin "command-palette" ''
export MAIN_BROWSER_ICON="${mainBrowserIcon}"
export MAIN_BROWSER_BIN="${mainBrowserBinary}"
exec ${pkgs.bash}/bin/bash ${./command-palette.sh}
'';
in { home.packages = [ commandPalette ]; }