move video group to v4l2 module

This commit is contained in:
jacekpoz 2024-09-01 23:18:07 +02:00
parent cdc25c08e6
commit ba4d19eb5c
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
3 changed files with 8 additions and 6 deletions

View file

@ -2,11 +2,17 @@
config,
pkgs,
...
}: {
}: let
inherit (config.poz.other.system) username;
in {
boot = {
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
kernelModules = [ "v4l2loopback" ];
};
environment.systemPackages = [ pkgs.v4l-utils ];
users.users.${username} = {
extraGroups = [ "video" ];
};
}

View file

@ -30,10 +30,6 @@ in {
security.polkit.enable = true;
users.users.${username} = {
extraGroups = [ "video" ];
};
hardware = {
sensor.iio.enable = true;
# ipu6 = {

View file

@ -29,7 +29,7 @@ in {
security.polkit.enable = true;
users.users.${username} = {
extraGroups = [ "video" "docker" ];
extraGroups = [ "docker" ];
};
hardware = {