about summary refs log tree commit diff
path: root/platforms
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-14 14:45:38 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-11-14 14:45:38 +0100
commit9f4077d3579b9837fff78b8f36661c7abc41cd10 (patch)
treeb66cd8352cf09ea173c08cd8f9d687334fc2014e /platforms
parent4ae8d686cd6db49120a6f307b07b2ce03938af42 (diff)
downloaddots-9f4077d3579b9837fff78b8f36661c7abc41cd10.tar.gz
dots-9f4077d3579b9837fff78b8f36661c7abc41cd10.zip
Update
Diffstat (limited to 'platforms')
-rw-r--r--platforms/linux/configuration.nix9
-rw-r--r--platforms/linux/xorg/config.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/platforms/linux/configuration.nix b/platforms/linux/configuration.nix
index ec64b83..dcf2e1b 100644
--- a/platforms/linux/configuration.nix
+++ b/platforms/linux/configuration.nix
@@ -53,6 +53,15 @@ in
   boot.plymouth.enable = true;
   boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
 
+  boot.extraModulePackages = with pkgs.linuxPackages; [
+    v4l2loopback
+  ];
+
+  boot.kernelModules = [ "v4l2loopback" ];
+  boot.extraModprobeConfig = ''
+    options v4l2loopback exclusive_caps=1 video_nr=9 card_label="obs"
+  '';
+
   fileSystems = {
     "/home" = {
       device = "/dev/disk/by-label/home";
diff --git a/platforms/linux/xorg/config.h b/platforms/linux/xorg/config.h
index b8d1bab..a3287dd 100644
--- a/platforms/linux/xorg/config.h
+++ b/platforms/linux/xorg/config.h
@@ -190,7 +190,7 @@ static Key keys[] = {
 	/* { MODKEY|ShiftMask,		XK_z,		spawn,		SHCMD("") }, */
 	{ MODKEY,			XK_x,		incrgaps,	{.i = -3 } },
 	/* { MODKEY|ShiftMask,		XK_x,		spawn,		SHCMD("") }, */
-	/* { MODKEY,			XK_c,		spawn,		SHCMD("") }, */
+	{ MODKEY,			XK_c,		spawn,		SHCMD("Discord") },
 	/* { MODKEY|ShiftMask,		XK_c,		spawn,		SHCMD("") }, */
 	/* V is automatically bound above in STACKKEYS */
 	{ MODKEY,			XK_b,		togglebar,	{0} },