sandboxing
This commit is contained in:
parent
5f70e8be94
commit
0f1a81c2aa
13 changed files with 230 additions and 90 deletions
34
users.nix
34
users.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue