Sefa Eyeoglu
416ba8804b
treewide: use addDriverRunpath
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-06-30 15:01:01 -04:00
Someone Serge
7d667a0996
nix-required-mounts: refactor: drop unused arguments
2024-06-26 00:35:45 +00:00
Someone Serge
ebeb6b9d1d
nix-required-mounts: nixfmt
2024-06-26 00:35:45 +00:00
Someone Serge
ff430d1699
nix-required-mounts: cuda: /dev/video* may not exist and aren't relevant
2024-06-26 00:35:45 +00:00
Someone Serge
927b15ed6d
nixos/nix-required-mounts: allow passing extra arguments to the hook
2024-06-26 00:35:44 +00:00
Someone Serge
6a6b6ac359
nix-required-mounts: print -> logging
2024-06-26 00:35:44 +00:00
Someone Serge
61001a31c3
nix-required-mounts: enforce that host paths exist
2024-06-26 00:35:44 +00:00
Someone Serge
dd70727622
nixos/nix-required-mounts: mount the runtime closures
2024-06-26 00:35:44 +00:00
Someone Serge
075dd8b536
nix-required-mounts: allow overriding the rendered config
2024-06-26 00:35:44 +00:00
Someone Serge
55f54cc2c3
nix-required-mounts: restore (optional) symlink support
2024-06-26 00:35:44 +00:00
Someone Serge
3cf5bcfe49
nix-required-mounts: restore the followSymlinks option
...
This way pkgs.nix-required-mounts is "correct" even before
we override it in the NixOS module
2024-06-26 00:35:44 +00:00
Someone Serge
5560f6a514
nix-required-mounts: guest and host paths may differ
2024-06-26 00:35:43 +00:00
Someone Serge
7418e4fefd
programs.nix-required-mounts: presets.cuda -> nvidia-gpu
...
This hopefully clarifies that the preset configures the hook to expose
"nvidia devices", which includse both the userspace driver and the
device nodes.
The derivations still declare requiredSystemFeatures = [ "cuda" ] to
explicitly indicate they need to use the CUDA functionality and expect a
libcuda.so and a CUDA-capable device. Ideally, we'd also include the
specific CUDA architectures (sm_86, etc) in feature names.
Derivations that use a co-processor but do not care about the vendor or
even the particular interface may ask for the more generic "opengl",
"vulkan", or "gpu" features. It is then responsibility of the host
declaring the support for this feature to ensure the drivers and
hardware are appropriately set up.
2024-06-26 00:35:43 +00:00
Someone Serge
6a0f2aedc1
nix-required-mounts: fix: add missing metadata
2024-06-26 00:35:43 +00:00
Someone Serge
3a0d777486
nix-required-mounts: link the issue about unavailable .drvs
2024-06-26 00:35:43 +00:00
Someone Serge
3d84ab0b09
nix-required-mounts: expose the VM test in passthru
2024-06-26 00:35:43 +00:00
Someone Serge
50d4382114
programs.nix-required-mounts: inherit defaults from the package
2024-06-26 00:35:43 +00:00
Someone Serge
6662b09941
nix-required-mounts: handle __structuredAttrs
2024-06-26 00:35:43 +00:00
Someone Serge
6859a2dabc
nix-required-mounts: use wrappers instead of statically embedding config into the script
2024-06-26 00:35:42 +00:00
Someone Serge
b422dafc89
nix-required-mounts: init
2024-06-26 00:35:42 +00:00