obs virtual camera stuff
This commit is contained in:
parent
346865f65b
commit
5bd748f506
3 changed files with 30 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
{ inputs, config, pkgs, ... }: {
|
||||
users.users.tao.packages = with pkgs; [
|
||||
miniserve
|
||||
# wkhtmltopdf
|
||||
|
|
@ -82,6 +82,14 @@
|
|||
configDir = "/home/tao/.config/syncthing";
|
||||
};
|
||||
|
||||
# obs virtual camera
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
boot.extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
noto-fonts-cjk
|
||||
|
|
@ -94,15 +102,6 @@
|
|||
shell = pkgs.nushell;
|
||||
};
|
||||
|
||||
|
||||
security.sudo-rs.enable = true;
|
||||
security.sudo-rs.extraRules = [{
|
||||
commands = [
|
||||
{ command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows"; options = [ "NOPASSWD" ]; }
|
||||
];
|
||||
groups = [ "wheel" ];
|
||||
}];
|
||||
|
||||
# i18n.inputMethod = {
|
||||
# enabled = "fcitx5";
|
||||
# fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ];
|
||||
|
|
|
|||
|
|
@ -44,19 +44,21 @@
|
|||
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
|
||||
{
|
||||
name = "rust";
|
||||
language-server.rust-analyzer.config = {
|
||||
procMacro = {
|
||||
ignored = {
|
||||
leptos_macro = [
|
||||
# Optional:
|
||||
# "component",
|
||||
"server"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
language-servers = {
|
||||
rust-analyzer.config = {
|
||||
procMacro = {
|
||||
ignored = {
|
||||
leptos_macro = [
|
||||
# Optional:
|
||||
# "component",
|
||||
"server"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
grammar = [
|
||||
{
|
||||
name = "nix";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue