move v4l2 stuff to options

This commit is contained in:
jacekpoz 2024-05-08 19:47:57 +02:00
parent 0ff36555f9
commit db1377cdd8
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
4 changed files with 13 additions and 2 deletions

View file

@ -9,8 +9,6 @@
boot = {
kernelPackages = pkgs.linuxPackages_xanmod_latest;
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
kernelModules = [ "v4l2loopback" ];
kernelParams = [
"video=eDP-1:1920x1280@60"
];

View file

@ -18,6 +18,7 @@ _: {
../../options/desktop/power-supply.nix
../../options/desktop/random-mac.nix
../../options/desktop/suspend.nix
../../options/desktop/v4l2.nix
../../options/desktop/waydroid.nix
];
}

View file

@ -23,6 +23,7 @@ _: {
#../../options/desktop/power-supply.nix
../../options/desktop/random-mac.nix
../../options/desktop/suspend.nix
../../options/desktop/v4l2.nix
../../options/desktop/waydroid.nix
];
}

11
options/desktop/v4l2.nix Normal file
View file

@ -0,0 +1,11 @@
{
config,
...
}: {
boot = {
extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
kernelModules = [ "v4l2loopback" ];
};
}