This is the result of ~100 commits to my NixOS config. Since I haven't always used `agenix-rekey`, this is another initial commit so that none of the secrets in my git history are leaked
17 lines
355 B
Nix
17 lines
355 B
Nix
{pkgs, ...}: let
|
|
name = "open-url";
|
|
bin = pkgs.writeShellApplication {
|
|
inherit name;
|
|
text = builtins.readFile ./open-url;
|
|
};
|
|
|
|
desktopItem = pkgs.makeDesktopItem {
|
|
inherit name;
|
|
desktopName = "Open URL in a Browser";
|
|
exec = "${bin}/bin/${name}";
|
|
};
|
|
in
|
|
pkgs.symlinkJoin {
|
|
inherit name;
|
|
paths = [bin desktopItem];
|
|
}
|