v4l2->v4l2loopback

This commit is contained in:
Reid 2026-06-14 14:59:08 -07:00
parent 0c0be56623
commit 7c549b8c78
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@
modules = {
core = {
# kernel
kernel.v4l2 = true;
kernel.v4l2loopback = true;
kernel.zswap = true;
# security
security.useDoas = true;

View file

@ -6,7 +6,7 @@ let
in {
options.modules.core.kernel = {
zswap = mkEnableOption "Enable zswap, a compressed RAM cache for swap pages";
v4l2 = mkEnableOption "Enable support for v4l2 loopback devices";
v4l2loopback = mkEnableOption "Enable support for v4l2 loopback devices";
};
config = mkMerge [
@ -22,7 +22,7 @@ in {
"zswap.zpool=zsmalloc"
];
})
(mkIf cfg.v4l2 {
(mkIf cfg.v4l2loopback {
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
})