packages/fragments-remote: sandbox
This commit is contained in:
parent
77d44a6329
commit
a622a1b33c
4 changed files with 38 additions and 16 deletions
18
packages/nixpak/fragments/default.nix
Normal file
18
packages/nixpak/fragments/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ mkNixPak, fragments }:
|
||||
|
||||
mkNixPak {
|
||||
config = {
|
||||
imports = [ ../modules/gui-base.nix ];
|
||||
flatpak.appId = "de.haeckerfelix.Fragments";
|
||||
app.package = fragments;
|
||||
dbus.policies = {
|
||||
"org.freedesktop.secrets" = "talk";
|
||||
};
|
||||
bubblewrap = {
|
||||
network = true;
|
||||
bind.rw = [
|
||||
"$HOME/.config/fragments"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -11,9 +11,9 @@
|
|||
"org.freedesktop.portal.*" = "talk";
|
||||
"org.a11y.Bus" = "talk";
|
||||
};
|
||||
gpu.enable = true;
|
||||
gpu.enable = lib.mkDefault true;
|
||||
bubblewrap = {
|
||||
network = false;
|
||||
network = lib.mkDefault false;
|
||||
bind.rw = [
|
||||
"$HOME/.cache/fontconfig"
|
||||
"$HOME/.cache/mesa_shader_cache"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{ inputs, pkgs }:
|
||||
let
|
||||
tools = import ./lib/tools.nix;
|
||||
patch' = super: tools.patch super "patches/base/${super.pname}";
|
||||
dream2nix = inputs.dream2nix.lib2.init {
|
||||
inherit pkgs;
|
||||
config = {
|
||||
|
@ -12,10 +14,10 @@ let
|
|||
inherit pkgs;
|
||||
};
|
||||
|
||||
sandbox = path: (pkgs.callPackage path {inherit mkNixPak;}).config.env;
|
||||
sandbox = path: extra: (pkgs.callPackage path ({ inherit mkNixPak; } // extra)).config.env;
|
||||
in
|
||||
{
|
||||
amberol = sandbox ./nixpak/amberol;
|
||||
amberol = sandbox ./nixpak/amberol { };
|
||||
|
||||
brig = pkgs.callPackage ./tools/brig { };
|
||||
|
||||
|
@ -25,6 +27,20 @@ in
|
|||
|
||||
doom-one-vim = pkgs.callPackage ./vim-plugins/doom-one-vim.nix { };
|
||||
|
||||
fragments-remote = let
|
||||
fakeTransmission = pkgs.writeShellScriptBin "transmission-daemon" ''
|
||||
exec ${pkgs.coreutils}/bin/sleep +Infinity
|
||||
'';
|
||||
|
||||
app = pkgs.fragments.overrideAttrs (_: {
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix PATH : "${pkgs.lib.makeBinPath [ fakeTransmission ] }"
|
||||
)
|
||||
'';
|
||||
});
|
||||
in sandbox ./nixpak/fragments { fragments = app; };
|
||||
|
||||
git-remote-ipld = pkgs.callPackage ./tools/git-remote-ipld { };
|
||||
|
||||
hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; };
|
||||
|
|
|
@ -7,18 +7,6 @@ super: rec {
|
|||
|
||||
doas-interactive = patch-rename super.doas "doas-interactive" "patches/base/doas";
|
||||
|
||||
fragments-remote = let
|
||||
fakeTransmission = super.writeShellScriptBin "transmission-daemon" ''
|
||||
exec ${super.coreutils}/bin/sleep +Infinity
|
||||
'';
|
||||
in super.fragments.overrideAttrs (_: {
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix PATH : "${super.lib.makeBinPath [ fakeTransmission ] }"
|
||||
)
|
||||
'';
|
||||
});
|
||||
|
||||
lain-ipfs = patch-rename super.ipfs "lain-ipfs" "patches/base/ipfs";
|
||||
|
||||
gnome-control-center = patch' super.gnome.gnome-control-center;
|
||||
|
|
Loading…
Reference in a new issue