This commit is contained in:
2026-05-30 19:03:33 +09:00
parent f5ecef894d
commit 5f1cfc5275
155 changed files with 4168 additions and 300 deletions
+35
View File
@@ -0,0 +1,35 @@
{
pkgs,
lib,
config,
...
}:
let
cfg = config.my.system.camera;
in
{
options.my.system.camera = {
enable = lib.mkEnableOption "camera support";
};
config = lib.mkIf cfg.enable {
boot.kernelModules = [ "uvcvideo" ];
environment.systemPackages = with pkgs; [
v4l-utils
ffmpeg-full
];
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
security.rtkit.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
};
}