diff options
author | polwex <polwex@sortug.com> | 2024-10-06 20:13:48 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2024-10-06 20:13:48 +0700 |
commit | cf8efca811d9c3943ff96bbe4b7e487021b78445 (patch) | |
tree | c73ec589c781665dad40549c59cb71d30bfc2273 | |
parent | 7971835303f1d73272e7b2170ecd3f2eb5680b40 (diff) |
m
-rw-r--r-- | hosts/base.nix | 1 | ||||
-rw-r--r-- | hosts/cloud/bkk/configuration.nix | 2 | ||||
-rw-r--r-- | hosts/local/nvidia.nix | 18 |
3 files changed, 20 insertions, 1 deletions
diff --git a/hosts/base.nix b/hosts/base.nix index 8d79398..463f7bf 100644 --- a/hosts/base.nix +++ b/hosts/base.nix @@ -2,6 +2,7 @@ # fucking linux vulnerability services.printing.enable = false; # enable flakes + services.printing.enable = false; nix = { gc = { automatic = true; diff --git a/hosts/cloud/bkk/configuration.nix b/hosts/cloud/bkk/configuration.nix index da71a54..94b9451 100644 --- a/hosts/cloud/bkk/configuration.nix +++ b/hosts/cloud/bkk/configuration.nix @@ -7,7 +7,7 @@ imports = [ ./hardware-configuration.nix ./nginx.nix - ./jmap.nix + # ./jmap.nix ../../users.nix ../../base.nix ../../server.nix diff --git a/hosts/local/nvidia.nix b/hosts/local/nvidia.nix index f2d4b46..3a86b95 100644 --- a/hosts/local/nvidia.nix +++ b/hosts/local/nvidia.nix @@ -6,6 +6,13 @@ # package = (pkgs.mesa.override { galliumDrivers = [ "i915" "swrast" ]; }).drivers; # enable = true; # }; + + nix.settings.substituters = [ + "https://cuda-maintainers.chachix.org" + ]; + nix.settings.trusted-public-keys = [ + "cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=" + ]; services.xserver = { videoDrivers = ["nvidia"]; @@ -27,4 +34,15 @@ # nvidiaSettings = true; open = false; }; + # hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.mkDriver { + # version = "525.116.04"; + # sha256_64bit = "sha256-hhDsgkR8/3LLXxizZX7ppjSlFRZiuK2QHrgfTE+2F/4="; + # sha256_aarch64 = "sha256-k7k22z5PYZdBVfuYXVcl9SFUMqZmK4qyxoRwlYyRdgU="; + # openSha256 = "sha256-dktHCoESqoNfu5M73aY5MQGROlZawZwzBqs3RkOyfoQ="; + # settingsSha256 = "sha256-qNjfsT9NGV151EHnG4fgBonVFSKc4yFEVomtXg9uYD4="; + # persistencedSha256 = "sha256-ci86XGlno6DbHw6rkVSzBpopaapfJvk0+lHcR4LDq50="; + + # ibtSupport = true; + # }; + } |