From db1377cdd832ec0a7761e4acf9d870edb9adc017 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Wed, 8 May 2024 19:47:57 +0200 Subject: [PATCH] move v4l2 stuff to options --- hosts/del/configuration.nix | 2 -- hosts/del/profile.nix | 1 + hosts/niks/profile.nix | 1 + options/desktop/v4l2.nix | 11 +++++++++++ 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 options/desktop/v4l2.nix diff --git a/hosts/del/configuration.nix b/hosts/del/configuration.nix index 5bebbb1..515764d 100644 --- a/hosts/del/configuration.nix +++ b/hosts/del/configuration.nix @@ -9,8 +9,6 @@ boot = { kernelPackages = pkgs.linuxPackages_xanmod_latest; - extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; - kernelModules = [ "v4l2loopback" ]; kernelParams = [ "video=eDP-1:1920x1280@60" ]; diff --git a/hosts/del/profile.nix b/hosts/del/profile.nix index 9f75fff..57ef5dc 100644 --- a/hosts/del/profile.nix +++ b/hosts/del/profile.nix @@ -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 ]; } diff --git a/hosts/niks/profile.nix b/hosts/niks/profile.nix index 53358ac..07f5a11 100644 --- a/hosts/niks/profile.nix +++ b/hosts/niks/profile.nix @@ -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 ]; } diff --git a/options/desktop/v4l2.nix b/options/desktop/v4l2.nix new file mode 100644 index 0000000..a1e3752 --- /dev/null +++ b/options/desktop/v4l2.nix @@ -0,0 +1,11 @@ +{ + config, + ... +}: { + boot = { + extraModulePackages = with config.boot.kernelPackages; [ + v4l2loopback + ]; + kernelModules = [ "v4l2loopback" ]; + }; +}