Update system
This commit is contained in:
parent
a9698856a9
commit
84fa5d8522
4 changed files with 100 additions and 73 deletions
File diff suppressed because one or more lines are too long
27
modules/user/nixpak.nix
Normal file
27
modules/user/nixpak.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ 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;
|
||||
};
|
||||
})];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue