[NixOS] Temporarily remove create-symlinks hooks

This commit is contained in:
2024-12-31 03:47:54 -07:00
parent e273e34662
commit 8453cc92b6
2 changed files with 10 additions and 4 deletions

6
nixos/flake.lock generated
View File

@@ -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": {

View File

@@ -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;