28 lines
598 B
Nix
28 lines
598 B
Nix
{ inputs, lib, pkgs, ... }: let
|
|
mkNixpak = inputs.nixpak.lib.nixpak {
|
|
inherit lib pkgs;
|
|
};
|
|
in {
|
|
nixpkgs.overlays = [(final: prev: {
|
|
sandbox = {
|
|
kwrite = let
|
|
np = mkNixpak {
|
|
config = {
|
|
app.package = prev.kate;
|
|
};
|
|
};
|
|
in np.config.env;
|
|
|
|
curl = let
|
|
np = mkNixpak {
|
|
config = {
|
|
dbus.enable = false;
|
|
bubblewrap.network = false;
|
|
app.package = pkgs.writeShellScriptBin "kurl" "${final.curl}/bin/curl \"$@\"";
|
|
};
|
|
};
|
|
in np.config.env;
|
|
};
|
|
})];
|
|
}
|