mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-09 19:32:05 +02:00
fix(security): remove container daemon group access
This commit is contained in:
@@ -34,8 +34,6 @@
|
||||
"users"
|
||||
"wheel"
|
||||
"networkmanager" # for nmtui / nm-connection-editor
|
||||
"podman"
|
||||
"docker"
|
||||
"wireshark"
|
||||
"adbusers" # android debugging
|
||||
"libvirtd" # virt-viewer / qemu
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
userHasDockerAccess = false;
|
||||
userHasPodmanAccess = false;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ outputs, ... }:
|
||||
let
|
||||
userGroups = outputs.nixosConfigurations.ai-niri.config.users.users.ryan.extraGroups;
|
||||
in
|
||||
{
|
||||
userHasDockerAccess = builtins.elem "docker" userGroups;
|
||||
userHasPodmanAccess = builtins.elem "podman" userGroups;
|
||||
}
|
||||
Reference in New Issue
Block a user