sandboxing

This commit is contained in:
root 2026-07-18 11:45:31 -03:00
parent 5f70e8be94
commit 0f1a81c2aa
No known key found for this signature in database
13 changed files with 230 additions and 90 deletions

View file

@ -41,26 +41,25 @@
# ];
# linger = true;
# };
agent = {
uid = 1002;
homeMode = "770";
home = "/home/agent";
shell = pkgs.fish;
isNormalUser = true;
group = "agent";
extraGroups = [ "public" ];
linger = true;
};
# sandbox = {
# uid = 1003;
# agent = {
# uid = 1002;
# homeMode = "770";
# home = "/home/sandbox";
# home = "/home/agent";
# shell = pkgs.fish;
# isNormalUser = true;
# group = "sandbox";
# group = "agent";
# extraGroups = [ "public" ];
# linger = true;
# };
sandbox = {
uid = 1001;
homeMode = "770";
home = "/home/sandbox";
shell = pkgs.fish;
isNormalUser = true;
group = "users";
linger = true;
};
user = {
uid = 1000;
homeMode = "700";
@ -72,13 +71,11 @@
"libvirt"
"systemd-journal"
"kvm"
"public"
"agent"
"sandbox"
"audio"
"video"
"render"
"bluetooth"
"users"
# "work"
];
hashedPasswordFile = config.sops.secrets."user/password".path;
@ -87,9 +84,6 @@
};
groups = {
user.gid = 1000;
agent.gid = 1002;
public.gid = 777;
# sandbox.gid = 1003;
};
};
}