Skip to content

Commit bf86b00

Browse files
committed
bar sandbox
1 parent 154725b commit bf86b00

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

nix/bar.nix

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{pkgs}: let
2+
nixpak = import ./nixpak.nix;
3+
mkNixPak = nixpak.lib.nixpak {
4+
inherit (pkgs) lib;
5+
inherit pkgs;
6+
};
7+
app = pkgs.writeShellApplication {
8+
name = "bar";
9+
text = "${pkgs.beyond-all-reason}/bin/beyond-all-reason";
10+
};
11+
sandbox = mkNixPak {
12+
config = {sloth, ...}: {
13+
app.package = app;
14+
gpu.enable = true;
15+
gpu.provider = "bundle";
16+
fonts.enable = true;
17+
locale.enable = true;
18+
etc.sslCertificates.enable = true;
19+
bubblewrap = {
20+
network = true;
21+
sockets.pulse = true;
22+
sockets.wayland = true;
23+
bind.rw = [
24+
[
25+
(sloth.mkdir (sloth.concat' sloth.homeDir "/bar"))
26+
sloth.homeDir
27+
]
28+
];
29+
tmpfs = [
30+
"/tmp"
31+
];
32+
};
33+
};
34+
};
35+
in
36+
sandbox.config.env

nix/configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ in {
805805
(import ./clipmaker.nix)
806806
neovim
807807
(import ./zed.nix {inherit pkgs;})
808+
(import ./bar.nix {inherit pkgs;})
808809
];
809810
programs.git = {
810811
enable = true;

nix/zed-config.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
autosave = "off";
2020
theme = "One Dark";
2121

22+
agent.default_model = {
23+
provider = "google";
24+
model = "gemini-2.5-pro";
25+
};
26+
2227
lsp = {
2328
nil = {
2429
binary = {

nix/zed.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"/etc/group"
3737
"/etc/passwd"
3838
"/run/current-system/sw/bin/bash"
39+
"/run/current-system/sw/bin/less"
3940
(sloth.concat' sloth.homeDir "/.nix-profile")
4041
[
4142
(toString (import ./zed-config.nix {inherit pkgs;}))

0 commit comments

Comments
 (0)