various improvements

This commit is contained in:
yaroslav
2025-08-30 22:29:48 +03:00
parent e7b6ab283e
commit f697119ffe
8 changed files with 208 additions and 29 deletions
+17 -1
View File
@@ -1,7 +1,23 @@
{ ... }:
{ config, lib, ... }:
{
virtualisation.waydroid.enable = true;
services.flatpak.enable = true;
programs.nekoray.enable = true;
programs.nekoray.tunMode.enable = true;
programs.obs-studio.enable = true;
programs.obs-studio.enableVirtualCamera = true;
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
security.polkit.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"ida-free"
];
programs.hyprland.enable = true;
programs.waybar.enable = true;
}
+7 -3
View File
@@ -14,7 +14,7 @@
boot.extraModulePackages = [ ];
boot.supportedFilesystems = [ "zfs" ];
boot.kernelParams = [
"video=DP-1:1920x1080@60"
"video=DP-1:1920x1080@60"
];
fileSystems."/" =
@@ -58,13 +58,17 @@
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
chaotic.mesa-git.enable = true;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
#networking.firewall.allowedTCPPorts = [ 42420 ];
networking.firewall.trustedInterfaces = [ "enp12s0" "wlp11s0" ];
networking.firewall.allowedTCPPorts = [ 42420 25565 ];
networking.firewall.allowedUDPPorts = [ 5900 ];
networking.firewall.trustedInterfaces = [ "enp12s0" "wlp11s0" "wg0"];
#networking.firewall.enable = false;
# networking.interfaces.enp12s0.useDHCP = lib.mkDefault true;
+5
View File
@@ -40,5 +40,10 @@
# locales
i18n.extraLocales = [ "en_US.UTF-8/UTF-8" "C.UTF-8/UTF-8" "ru_RU.UTF-8/UTF-8" ];
# keyboard
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
}