From d0a6fb398e61ed34bea1e0efcbdc9c4d7b70b263 Mon Sep 17 00:00:00 2001 From: tulg Date: Sat, 28 Mar 2026 01:40:22 +0300 Subject: [PATCH] generalized flake restructing/laptops hwaccel, few comments aand whaatever i did there probs --- hosts/archangel/configuration.nix | 6 ------ hosts/archangel/hardware-configuration.nix | 6 ------ hosts/virgil/hardware-configuration.nix | 16 ++++++++-------- modules/nixos/common.nix | 4 ++++ modules/nixos/networking/default.nix | 2 +- modules/nixos/services.nix | 2 +- 6 files changed, 14 insertions(+), 22 deletions(-) diff --git a/hosts/archangel/configuration.nix b/hosts/archangel/configuration.nix index f9c671c..ec8924d 100644 --- a/hosts/archangel/configuration.nix +++ b/hosts/archangel/configuration.nix @@ -28,18 +28,12 @@ enable = true; xwayland.enable = true; }; - programs.steam = { - enable = true; - remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play - dedicatedServer.openFirewall = true; # Open ports for Source Dedicated Server hosting - }; programs.gamemode.enable = true; powerManagement.powertop.enable = true; services.upower.enable = true; services = { - power-profiles-daemon.enable = true; tlp = { enable = false; settings = { diff --git a/hosts/archangel/hardware-configuration.nix b/hosts/archangel/hardware-configuration.nix index af5ade1..6c76b8b 100644 --- a/hosts/archangel/hardware-configuration.nix +++ b/hosts/archangel/hardware-configuration.nix @@ -19,13 +19,7 @@ swapDevices = []; - # 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..useDHCP`. networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/hosts/virgil/hardware-configuration.nix b/hosts/virgil/hardware-configuration.nix index 6d28316..8ed61e9 100644 --- a/hosts/virgil/hardware-configuration.nix +++ b/hosts/virgil/hardware-configuration.nix @@ -46,15 +46,15 @@ swapDevices = []; - fileSystems."/mnt/backup" = { - device = "/dev/disk/by-uuid/4242ad6b-4b5e-4990-bcf7-501f6099b429"; - fsType = "ext4"; - options = [ - "nofail" # don’t block boot if missing - # "x-systemd.automount" # mount on first access - "noatime" + #fileSystems."/mnt/backup" = { + # device = "/dev/disk/by-uuid/4242ad6b-4b5e-4990-bcf7-501f6099b429"; + # fsType = "ext4"; + # options = [ + # "nofail" # don’t block boot if missing + # # "x-systemd.automount" # mount on first access + # "noatime" ]; - }; + # }; fileSystems."/mnt/hdd1tb" = { device = "/dev/disk/by-uuid/790092e5-074b-4007-a511-cbd8aa8cc1a7"; diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index 2dd396a..7deac1a 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -17,4 +17,8 @@ networking.firewall.checkReversePath = "loose"; services.resolved.enable = true; networking.networkmanager.enable = true; + hardware.graphics = { + enable = true; + enable32Bit = true; + }; } diff --git a/modules/nixos/networking/default.nix b/modules/nixos/networking/default.nix index 9bb1b68..9857188 100644 --- a/modules/nixos/networking/default.nix +++ b/modules/nixos/networking/default.nix @@ -9,5 +9,5 @@ ./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 - ]; + ]; # its working with again but shits when in use with macvtap vm [vm nas access] } diff --git a/modules/nixos/services.nix b/modules/nixos/services.nix index 6e03cfe..f512edd 100644 --- a/modules/nixos/services.nix +++ b/modules/nixos/services.nix @@ -4,7 +4,7 @@ programs.thunar.enable = true; programs.xfconf.enable = true; services.displayManager.ly.enable = true; - services.ratbagd.enable = true; + services.ratbagd.enable = true; # logitech mouse config backend thingy systemd.services.tailscaled.after = ["network-online.target"]; systemd.services.tailscaled.wants = ["network-online.target"]; services.tailscale = {