From 90854019fc940473a0ce4fff29c402e54841f704 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 22 Nov 2024 03:29:56 -0500 Subject: Another day --- common/nvidia.nix | 6 ++++++ common/ssh.nix | 1 + 2 files changed, 7 insertions(+) create mode 100644 common/nvidia.nix (limited to 'common') diff --git a/common/nvidia.nix b/common/nvidia.nix new file mode 100644 index 0000000..df60136 --- /dev/null +++ b/common/nvidia.nix @@ -0,0 +1,6 @@ +{hardware, ...}: + +{ + # Import this config if gpu passthrough in docker containers + hardware.nvidia-container-toolkit.enable = true; +} diff --git a/common/ssh.nix b/common/ssh.nix index de931f5..d633fbb 100644 --- a/common/ssh.nix +++ b/common/ssh.nix @@ -9,6 +9,7 @@ AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ] UseDns = true; X11Forwarding = false; + GatewayPorts = "yes"; PermitRootLogin = "no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" }; }; -- cgit v1.2.3