From 07877798767376e8b94dd5bcb6a1b07de15c09bb Mon Sep 17 00:00:00 2001 From: tulg Date: Tue, 27 Jan 2026 01:52:43 +0300 Subject: [PATCH] fuck my fucking chungus life i am such a fat chud --- config/hypr/hyprland.conf | 3 +++ hosts/virgil/configuration.nix | 27 +++++++++++++++++++++++++ hosts/virgil/hardware-configuration.nix | 5 ----- hosts/virgil/vfio.nix | 2 +- modules/home-manager/pkgs.nix | 1 + modules/nixos/networking/default.nix | 2 +- modules/nixos/networking/zapret.nix | 19 +++++++---------- modules/nixos/services.nix | 5 ++++- 8 files changed, 44 insertions(+), 20 deletions(-) diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 3b71fb0..34b742a 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -14,6 +14,8 @@ # See https://wiki.hyprland.org/Configuring/Monitors/ monitor = eDP-1, 1920x1080@60.02000, 0x0, 1.00 monitor = Virtual-1, 1920x1080,0x0, 1 +disable-output = DP-3 +# #monitor = DP-1, 1920x1080@60, 0x0, 1 #monitor = HDMI-A-1, 1920x1080@60.02000, 0x0, 1 #monitor @@ -317,5 +319,6 @@ bind = $mainMod SHIFT, G, exec, footclient -e ~/.local/bin/bear/implement_gum.sh # Install Garuda Hyprland bind = $mainMod, I, exec, .local/bin/calamares.sh + # Let the user customize this hyprstart script by overriding stuff in $hyprstart exec-once = .config/hypr/exec-hyprland diff --git a/hosts/virgil/configuration.nix b/hosts/virgil/configuration.nix index 03953f5..e460b90 100644 --- a/hosts/virgil/configuration.nix +++ b/hosts/virgil/configuration.nix @@ -19,6 +19,33 @@ enable = true; xwayland.enable = true; }; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + }; + hardware.opengl = { + enable = true; + driSupport32Bit = true; + }; + environment.systemPackages = with pkgs; [ + protonup-ng + ]; + + hardware.nvidia = { + modesetting.enable = true; + open = false; + powerManagement.enable = false; + prime = { + offload.enable = true; + offload.enableOffloadCmd = true; + + nvidiaBusId = "PCI:1:0:0"; + amdgpuBusId = "PCI:19:0:0"; + }; + }; + services.xserver.videoDrivers = ["nvidia" "amdgpu"]; + boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "virgil"; diff --git a/hosts/virgil/hardware-configuration.nix b/hosts/virgil/hardware-configuration.nix index de6bff4..1ac0d11 100644 --- a/hosts/virgil/hardware-configuration.nix +++ b/hosts/virgil/hardware-configuration.nix @@ -18,11 +18,6 @@ boot.extraModulePackages = []; swapDevices = []; - fileSystems."/mnt/share" = { - device = "192.168.1.200:/Main/"; - fsType = "nfs"; - options = ["_netdev" "noauto" "x-systemd.automount" "x-systemd.mount-timeout=10" "timeo=14" "x-systemd.idle-timeout=600"]; - }; fileSystems."/mnt/backup" = { device = "/dev/disk/by-uuid/4242ad6b-4b5e-4990-bcf7-501f6099b429"; fsType = "ext4"; diff --git a/hosts/virgil/vfio.nix b/hosts/virgil/vfio.nix index aa86dfe..8950b3f 100644 --- a/hosts/virgil/vfio.nix +++ b/hosts/virgil/vfio.nix @@ -9,7 +9,7 @@ inputs.nixos-vfio.nixosModules.vfio ]; - boot.kernelParams = ["amd_iommu=on"]; + boot.kernelParams = ["amd_iommu=on" "nvidia-drm.modeset=0"]; boot.blacklistedKernelModules = ["nvidia" "nouveau"]; boot.extraModulePackages = [config.boot.kernelPackages.kvmfr]; boot.kernelModules = ["vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"]; diff --git a/modules/home-manager/pkgs.nix b/modules/home-manager/pkgs.nix index 9f22759..eeb4030 100644 --- a/modules/home-manager/pkgs.nix +++ b/modules/home-manager/pkgs.nix @@ -17,6 +17,7 @@ cliphist swappy mpv + vulkan-tools pkgs.looking-glass-client tmux fastfetch diff --git a/modules/nixos/networking/default.nix b/modules/nixos/networking/default.nix index 7506800..9bb1b68 100644 --- a/modules/nixos/networking/default.nix +++ b/modules/nixos/networking/default.nix @@ -8,6 +8,6 @@ imports = [ ./bluetooth.nix ./ssh.nix - #./zapret.nix zapret decided to kill itself among all the devices caused so much problems, i just use tailscale exit node for the time being until i decide to fix this fucking shitass tool + #./zapret.nix # zapret decided to kill itself among all the devices caused so much problems, i just use tailscale exit node for the time being until i decide to fix this fucking shitass tool ]; } diff --git a/modules/nixos/networking/zapret.nix b/modules/nixos/networking/zapret.nix index cd1a5ee..44e98e3 100644 --- a/modules/nixos/networking/zapret.nix +++ b/modules/nixos/networking/zapret.nix @@ -1,6 +1,6 @@ { services.dnscrypt-proxy = { - enable = false; + enable = true; settings = { listen_addresses = [ @@ -29,11 +29,11 @@ }; services.zapret = { - enable = false; + enable = true; params = [ - # "--dpi-desync=fake" - # "--dpi-desync-ttl=8" + "--dpi-desync=fake" + "--dpi-desync-ttl=8" "--filter-tcp=443 --dpi-desync=fake --dpi-desync-ttl=1 --dpi-desync-fooling=badsum " "--filter-udp=443 --dpi-desync=fake --dpi-desync-ttl=1 --dpi-desync-fooling=badsum --new " "--filter-tcp=443 --hostlist=/opt/zapret/ipset/zapret-hosts-user.txt --dpi-desync=fake --dpi-desync-ttl=1 --dpi-desync-fooling=badsum " @@ -44,17 +44,12 @@ networking = { networkmanager = { enable = true; - extraConfig = '' - [connectivity] - uri=http://connectivitycheck.gstatic.com/generate_204 - interval=0 - ''; - #dns = "none"; + dns = "none"; }; nameservers = [ - # "127.0.0.1" - # "::1" + "127.0.0.1" + "::1" ]; }; } diff --git a/modules/nixos/services.nix b/modules/nixos/services.nix index 0150255..e271a7b 100644 --- a/modules/nixos/services.nix +++ b/modules/nixos/services.nix @@ -11,8 +11,11 @@ }; services.tailscale = { enable = true; + extraSetFlags = [ + "--exit-node=poggerer" + ]; useRoutingFeatures = "both"; - interfaceName = "userspace-networking"; + # interfaceName = "userspace-networking"; }; programs.thunar.plugins = with pkgs; [