Skip to content

Commit 9466a0f

Browse files
committed
amd 314 current 2024-12-22 01:03:59 25.05.20241221.a168813 6.6.67 *
1 parent 76106d5 commit 9466a0f

2 files changed

Lines changed: 63 additions & 65 deletions

File tree

nixos/specialisations/nvidia-egpu/default.nix

Lines changed: 8 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ let
99
'';
1010
in
1111
{
12-
# specialisation = {
13-
# nvidia-egpu.configuration = {
14-
system.nixos.tags = [
15-
# "nvidia"
16-
# "egpu"
17-
"nvidia-egpu"
18-
];
12+
# specialisation = { nvidia-egpu.configuration = {
13+
# system.nixos.tags = [
14+
# "nvidia"
15+
# "egpu"
16+
# "nvidia-egpu"
17+
# ];
1918
environment.systemPackages = [
2019
nvidia-offload
2120
pkgs.glxinfo
@@ -48,67 +47,11 @@ in
4847
enableOffloadCmd = true;
4948
};
5049
sync.enable = false;
51-
# # ./lib/pci-to-int.sh
50+
# ./lib/pci-to-int.sh
5251
amdgpuBusId = "PCI:193:0:0";
5352
nvidiaBusId = "PCI:100:0:0";
5453
};
5554
};
5655
};
57-
# };
58-
# };
56+
# };};
5957
}
60-
# {
61-
# pkgs,
62-
# inputs,
63-
# config,
64-
# ...
65-
# }:
66-
# {
67-
# specialisation = {
68-
# nvidia-egpu.configuration = {
69-
# # imports = [ inputs.nixos-hardware.nixosModules.common-gpu-nvidia ];
70-
# # boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
71-
# # boot.blacklistedKernelModules = [ "nouveau" "amdgpu" ];
72-
# # boot.kernelPackages = pkgs.linuxPackages_6_1; # EOL 2026 | 2033 CIP # https://github.com/133760D/Nix-nvidia-configuration/blob/main/boot_kernel.nix
73-
# # boot.initrd.kernelModules = [
74-
# # "nvidia"
75-
# # "i915"
76-
# # "nvidia_modeset"
77-
# # "nvidia_uvm"
78-
# # "nvidia_dm"
79-
# # ];
80-
# # systemd.services.nvidia-persistenced = {
81-
# # enable = true;
82-
# # description = "NVIDIA Persistence Daemon";
83-
# # after = [ "multi-user.target" ];
84-
# # wantedBy = [ "multi-user.target" ];
85-
# # };
86-
# # environment.systemPackages = with pkgs; [
87-
# # vulkan-tools
88-
# # vulkan-loader
89-
# # vulkan-validation-layers
90-
# # ];
91-
# hardware.graphics = {
92-
# enable = true;
93-
# enable32Bit = true;
94-
# # extraPackages = with pkgs; [ vaapiVdpau ];
95-
# };
96-
# services.xserver.videoDrivers = [ "nvidia" ];
97-
# hardware.nvidia = {
98-
# modesetting.enable = true;
99-
# powerManagement.enable = false;
100-
# powerManagement.finegrained = false;
101-
# open = false; # true;
102-
# # # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/nvidia-x11/default.nix
103-
# package = config.boot.kernelPackages.nvidiaPackages.production;
104-
# # # nvidiaPersistenced = true;
105-
# prime = {
106-
# reverseSync.enable = true;
107-
# # ./lib/pci-to-int.sh
108-
# amdgpuBusId = "PCI:193:0:0";
109-
# nvidiaBusId = "PCI:100:0:0";
110-
# };
111-
# };
112-
# };
113-
# };
114-
# }

nixos/specialisations/nvidia-egpu/something.nix

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,58 @@
6161
intelBusId = "PCI:0:2:0";
6262
};
6363
}
64+
# {
65+
# pkgs,
66+
# inputs,
67+
# config,
68+
# ...
69+
# }:
70+
# {
71+
# specialisation = {
72+
# nvidia-egpu.configuration = {
73+
# # imports = [ inputs.nixos-hardware.nixosModules.common-gpu-nvidia ];
74+
# # boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
75+
# # boot.blacklistedKernelModules = [ "nouveau" "amdgpu" ];
76+
# # boot.kernelPackages = pkgs.linuxPackages_6_1; # EOL 2026 | 2033 CIP # https://github.com/133760D/Nix-nvidia-configuration/blob/main/boot_kernel.nix
77+
# # boot.initrd.kernelModules = [
78+
# # "nvidia"
79+
# # "i915"
80+
# # "nvidia_modeset"
81+
# # "nvidia_uvm"
82+
# # "nvidia_dm"
83+
# # ];
84+
# # systemd.services.nvidia-persistenced = {
85+
# # enable = true;
86+
# # description = "NVIDIA Persistence Daemon";
87+
# # after = [ "multi-user.target" ];
88+
# # wantedBy = [ "multi-user.target" ];
89+
# # };
90+
# # environment.systemPackages = with pkgs; [
91+
# # vulkan-tools
92+
# # vulkan-loader
93+
# # vulkan-validation-layers
94+
# # ];
95+
# hardware.graphics = {
96+
# enable = true;
97+
# enable32Bit = true;
98+
# # extraPackages = with pkgs; [ vaapiVdpau ];
99+
# };
100+
# services.xserver.videoDrivers = [ "nvidia" ];
101+
# hardware.nvidia = {
102+
# modesetting.enable = true;
103+
# powerManagement.enable = false;
104+
# powerManagement.finegrained = false;
105+
# open = false; # true;
106+
# # # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/nvidia-x11/default.nix
107+
# package = config.boot.kernelPackages.nvidiaPackages.production;
108+
# # # nvidiaPersistenced = true;
109+
# prime = {
110+
# reverseSync.enable = true;
111+
# # ./lib/pci-to-int.sh
112+
# amdgpuBusId = "PCI:193:0:0";
113+
# nvidiaBusId = "PCI:100:0:0";
114+
# };
115+
# };
116+
# };
117+
# };
118+
# }

0 commit comments

Comments
 (0)