diff --git a/systems/BASED.nix b/systems/BASED.nix index f48453c..3c8142c 100644 --- a/systems/BASED.nix +++ b/systems/BASED.nix @@ -85,6 +85,14 @@ 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 = { experimental-features = "nix-command flakes"; auto-optimise-store = true; diff --git a/users/tao.nix b/users/tao.nix index 27c9285..7efc6b6 100644 --- a/users/tao.nix +++ b/users/tao.nix @@ -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 ]; diff --git a/users/tao/helix.nix b/users/tao/helix.nix index 5ae6a30..bd5fe61 100644 --- a/users/tao/helix.nix +++ b/users/tao/helix.nix @@ -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";