This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / pkgs / nm-dmenu / package.nix
690 B 25 lines
1{ pkgs, lib, ... }: 2 3let 4 meta.platforms = lib.platforms.linux; 5in 6# The writer forces the script at eval time and rofi & co. refuse to evaluate 7# off Linux, so reference them only there and keep meta readable elsewhere. 8if pkgs.stdenv.hostPlatform.isLinux then 9 (pkgs.writers.writeDashBin "nm-dmenu" '' 10 export PATH=$PATH:${ 11 lib.makeBinPath [ 12 (pkgs.writers.writeDashBin "dmenu" '' 13 exec ${lib.getExe pkgs.rofi} -dmenu "$@" 14 '') 15 pkgs.networkmanagerapplet 16 pkgs.procps 17 ] 18 } 19 exec ${pkgs.networkmanager_dmenu}/bin/networkmanager_dmenu "$@" 20 '') 21 // { 22 inherit meta; 23 } 24else 25 pkgs.runCommand "nm-dmenu" { inherit meta; } ""