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"
|
"users"
|
||||||
"wheel"
|
"wheel"
|
||||||
"networkmanager" # for nmtui / nm-connection-editor
|
"networkmanager" # for nmtui / nm-connection-editor
|
||||||
"podman"
|
|
||||||
"docker"
|
|
||||||
"wireshark"
|
"wireshark"
|
||||||
"adbusers" # android debugging
|
"adbusers" # android debugging
|
||||||
"libvirtd" # virt-viewer / qemu
|
"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