]> git.scottworley.com Git - srec/commitdiff
25.11: Formatting: nixfmt-classic → nixfmt-rfc-style
authorScott Worley <scottworley@scottworley.com>
Sat, 1 Aug 2026 22:28:16 +0000 (15:28 -0700)
committerScott Worley <scottworley@scottworley.com>
Sat, 1 Aug 2026 22:28:16 +0000 (15:28 -0700)
default.nix
modules/v4l2loopback.nix

index 6fef4371c6864c17881907af4401d65d7dcc5e6e..6fe9f8aad498c1a1c3af5ebc89540db947d4a38b 100644 (file)
@@ -1,7 +1,22 @@
-{ pkgs ? import <nixpkgs> { }, lint ? false }:
-pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full
-  , gobject-introspection, gtk4, lib, makeDesktopItem, makeWrapper, mypy, pylint
-  , pygobject3, wrapGAppsHook4, }:
+{
+  pkgs ? import <nixpkgs> { },
+  lint ? false,
+}:
+pkgs.python3Packages.callPackage (
+  {
+    autopep8,
+    buildPythonPackage,
+    ffmpeg-full,
+    gobject-introspection,
+    gtk4,
+    lib,
+    makeDesktopItem,
+    makeWrapper,
+    mypy,
+    pylint,
+    pygobject3,
+    wrapGAppsHook4,
+  }:
   buildPythonPackage rec {
     pname = "srec";
     version = "1.0.2";
@@ -11,8 +26,18 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full
     doCheck = true;
     checkPhase = "./test.sh";
 
-    nativeBuildInputs = [ gobject-introspection makeWrapper wrapGAppsHook4 ];
-    nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
+    nativeBuildInputs = [
+      gobject-introspection
+      makeWrapper
+      wrapGAppsHook4
+    ];
+    nativeCheckInputs = [
+      mypy
+    ]
+    ++ lib.optionals lint [
+      autopep8
+      pylint
+    ];
     buildInputs = [ gtk4 ];
     pythonPath = [ pygobject3 ];
 
@@ -33,7 +58,10 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full
       comment = "Record video and audio";
       desktopName = "SRec";
       genericName = "Record Screen";
-      categories = [ "AudioVideo" "Video" ];
+      categories = [
+        "AudioVideo"
+        "Video"
+      ];
     };
 
     meta = {
@@ -43,4 +71,5 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full
       maintainers = with pkgs.lib.maintainers; [ chkno ];
     };
 
-  }) { }
+  }
+) { }
index 1939724a958c15c5f0f6241587c86ab9b9d1e420..80eb1ae79996529a864011723606919beeb8ea47 100644 (file)
@@ -2,8 +2,7 @@
 # h/t: https://www.reddit.com/r/NixOS/comments/p8bqvu/how_to_install_v4l2looback_kernel_module/
 
 { config, ... }: {
-  boot.extraModulePackages = with config.boot.kernelPackages;
-    [ v4l2loopback.out ];
+  boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback.out ];
   boot.kernelModules = [ "v4l2loopback" ];
   boot.extraModprobeConfig = ''
     options v4l2loopback video_nr=8,9 exclusive_caps=1,1 card_label="Live Camera,Recording Camera"