[NixOS] Temporarily remove create-symlinks hooks
This commit is contained in:
6
nixos/flake.lock
generated
6
nixos/flake.lock
generated
@@ -1406,11 +1406,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1735602766,
|
"lastModified": 1735641514,
|
||||||
"narHash": "sha256-fu6LqEoR7WsINjGQHdhi1es/zkucJfZi5xMmR/fBvsw=",
|
"narHash": "sha256-63DDVPlpdQf6iheoVGBbD+1T9nTGPtY73sCXTDkwhIQ=",
|
||||||
"owner": "colonelpanic8",
|
"owner": "colonelpanic8",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5d6958e7bcb72e7720d01843e8778f640cffc113",
|
"rev": "731d09a7f6fbca541482925bb28c3892600f67e7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -1,12 +1,18 @@
|
|||||||
{ config, pkgs, makeEnable, ... }:
|
{ config, pkgs, makeEnable, lib, ... }:
|
||||||
|
|
||||||
makeEnable config "myModules.nvidia" false {
|
makeEnable config "myModules.nvidia" false {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nvidia-container-toolkit
|
nvidia-container-toolkit
|
||||||
|
nvidia-container-toolkit.tools
|
||||||
];
|
];
|
||||||
hardware.nvidia-container-toolkit = {
|
hardware.nvidia-container-toolkit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mount-nvidia-executables = true;
|
mount-nvidia-executables = true;
|
||||||
|
additionalEdit = ''
|
||||||
|
${lib.getExe pkgs.jq} '
|
||||||
|
.devices |= map(
|
||||||
|
.containerEdits.hooks |= map(select(.args | index("create-symlinks") < 0))
|
||||||
|
)' | ${lib.getExe pkgs.jq} '.containerEdits.hooks |= map(select(.args | index("create-symlinks") < 0 ))' '';
|
||||||
};
|
};
|
||||||
hardware.nvidia.open = true;
|
hardware.nvidia.open = true;
|
||||||
hardware.graphics.enable32Bit = true;
|
hardware.graphics.enable32Bit = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user