16 lines
409 B
Nix
16 lines
409 B
Nix
{
|
|
nix.settings.system-features = [ "sys-devices" ];
|
|
|
|
programs.nix-required-mounts.enable = true;
|
|
programs.nix-required-mounts.allowedPatterns.sys-devices.paths = [
|
|
"/sys/devices/system/cpu"
|
|
"/sys/devices/system/node"
|
|
];
|
|
|
|
# similar to cudaSupport, this can be used to activate certain features
|
|
# conditionally.
|
|
nixpkgs.overlays = [
|
|
(final: prev: { sysDevicesSupport = true; })
|
|
];
|
|
}
|