obs virtual camera stuff
This commit is contained in:
parent
346865f65b
commit
5bd748f506
3 changed files with 30 additions and 21 deletions
|
|
@ -85,6 +85,14 @@
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.sudo-rs.enable = true;
|
||||||
|
# security.sudo-rs.extraRules = [{
|
||||||
|
# commands = [
|
||||||
|
# { command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows"; options = [ "NOPASSWD" ]; }
|
||||||
|
# ];
|
||||||
|
# groups = [ "wheel" ];
|
||||||
|
# }];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
experimental-features = "nix-command flakes";
|
experimental-features = "nix-command flakes";
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, pkgs, ... }: {
|
{ inputs, config, pkgs, ... }: {
|
||||||
users.users.tao.packages = with pkgs; [
|
users.users.tao.packages = with pkgs; [
|
||||||
miniserve
|
miniserve
|
||||||
# wkhtmltopdf
|
# wkhtmltopdf
|
||||||
|
|
@ -82,6 +82,14 @@
|
||||||
configDir = "/home/tao/.config/syncthing";
|
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; [
|
fonts.packages = with pkgs; [
|
||||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
|
|
@ -94,15 +102,6 @@
|
||||||
shell = pkgs.nushell;
|
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 = {
|
# i18n.inputMethod = {
|
||||||
# enabled = "fcitx5";
|
# enabled = "fcitx5";
|
||||||
# fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ];
|
# fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ];
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,10 @@
|
||||||
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
|
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
|
||||||
{
|
{
|
||||||
name = "rust";
|
name = "rust";
|
||||||
language-server.rust-analyzer.config = {
|
}
|
||||||
|
];
|
||||||
|
language-servers = {
|
||||||
|
rust-analyzer.config = {
|
||||||
procMacro = {
|
procMacro = {
|
||||||
ignored = {
|
ignored = {
|
||||||
leptos_macro = [
|
leptos_macro = [
|
||||||
|
|
@ -55,8 +58,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
|
||||||
grammar = [
|
grammar = [
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue