nixnew/modules/user/nixpak.nix
2023-10-15 15:14:36 -07:00

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;
};
})];
}