From 2fcb46b61167a6cf41b280f4fc1b614532a4cc76 Mon Sep 17 00:00:00 2001 From: blake Date: Sun, 5 Oct 2025 19:40:41 -0500 Subject: [PATCH] 7 current 2025-10-05 19:40:33 25.05.20251001.5b5be50 6.12.49 * --- flake.nix | 2 +- hosts/snowbelle/configuration.nix | 4 ++-- modules/system/nvidia.nix | 9 ++++----- modules/system/tailscale.nix | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index 1395c95..dfcd97a 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 6 current 2025-10-05 18:36:02 25.05.20251001.5b5be50 6.12.49 * +# generation: 7 current 2025-10-05 19:40:33 25.05.20251001.5b5be50 6.12.49 * { description = "blakes nix config"; inputs = { diff --git a/hosts/snowbelle/configuration.nix b/hosts/snowbelle/configuration.nix index e1b6a94..18e5a51 100644 --- a/hosts/snowbelle/configuration.nix +++ b/hosts/snowbelle/configuration.nix @@ -17,7 +17,7 @@ syncthing.enable = true; syncthing.mode = "server"; tailscale.enable = true; - nvidia.enable = false; + nvidia.enable = true; }; homelab = { zfs.enable = true; @@ -113,7 +113,7 @@ networking.firewall.allowedUDPPorts = [ 51820 ]; # Or disable the firewall altogether. - networking.firewall.enable = false; + networking.firewall.enable = true; system.stateVersion = "25.05"; # Did you read the comment? diff --git a/modules/system/nvidia.nix b/modules/system/nvidia.nix index 08d0b1f..36e9d78 100644 --- a/modules/system/nvidia.nix +++ b/modules/system/nvidia.nix @@ -9,6 +9,10 @@ in }; config = lib.mkIf cfg.enable { + + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.opengl.driSupport32Bit = true; + # enable nvidia proprietary driver hardware.nvidia = { modesetting.enable = true; # required @@ -18,11 +22,6 @@ in package = config.boot.kernelPackages.nvidiaPackages.stable; }; - # install nvidia-smi - environment.systemPackages = with pkgs; [ - nvidia-smi - ]; - # enable docker gpu passthrough virtualisation.docker.enableNvidia = true; }; diff --git a/modules/system/tailscale.nix b/modules/system/tailscale.nix index d02170e..af5c746 100644 --- a/modules/system/tailscale.nix +++ b/modules/system/tailscale.nix @@ -12,7 +12,7 @@ in config = lib.mkIf cfg.enable { services.tailscale = { enable = true; - useRoutingFeatures = "both"; + useRoutingFeatures = "server"; authKeyFile = authkey_file; }; };