flake (part 2 with changes to flake.nix)
This commit is contained in:
parent
7dcd280d44
commit
68e1819b88
75
flake.nix
75
flake.nix
|
@ -1,29 +1,48 @@
|
||||||
{ ## Nvidia informations.
|
{
|
||||||
# Version of the system kernel module. Let it to null to enable auto-detection.
|
description = "";
|
||||||
nvidiaVersion ? null,
|
inputs = {
|
||||||
# Hash of the Nvidia driver .run file. null is fine, but fixing a value here
|
nixpkgs.url = https://github.com/NixOS/nixpkgs/archive/60330b60655b3fa3a18624bdd7069855bb37af99.tar.gz;
|
||||||
# will be more reproducible and more efficient.
|
};
|
||||||
nvidiaHash ? null,
|
outputs = { nixpkgs, nix, self, ... }@inputs : {
|
||||||
# Alternatively, you can pass a path that points to a nvidia version file
|
defaultPackage.x86_64-linux =
|
||||||
# and let nixGL extract the version from it. That file must be a copy of
|
let pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; }; in
|
||||||
# /proc/driver/nvidia/version. Nix doesn't like zero-sized files (see
|
(pkgs.callPackage ./nixGL.nix {
|
||||||
# https://github.com/NixOS/nix/issues/3539 ).
|
nvidiaVersion = "455.28";
|
||||||
nvidiaVersionFile ? null,
|
nvidiaVersionFile = null;
|
||||||
# Enable 32 bits driver
|
nvidiaHash = "03ysf61qrb272yqkn7bhn9d65lcfhmqc2c0dbh5prp5f2ndlkqg4";
|
||||||
# This is one by default, you can switch it to off if you want to reduce a
|
enable32bits = true;
|
||||||
# bit the size of nixGL closure.
|
}).nixGLIntel; #nixGLNvidia
|
||||||
enable32bits ? true,
|
# nixpkgs.stdenv.mkDerivation {
|
||||||
# Make sure to enable config.allowUnfree to the instance of nixpkgs to be
|
# builsInputs = [];
|
||||||
# able to access the nvidia drivers.
|
# { ## Nvidia informations.
|
||||||
pkgs ? import <nixpkgs> {
|
# # Version of the system kernel module. Let it to null to enable auto-detection.
|
||||||
config = { allowUnfree = true; };
|
# nvidiaVersion ? null,
|
||||||
}
|
# # Hash of the Nvidia driver .run file. null is fine, but fixing a value here
|
||||||
}:
|
# # will be more reproducible and more efficient.
|
||||||
pkgs.callPackage ./nixGL.nix {
|
# nvidiaHash ? null,
|
||||||
inherit
|
# # Alternatively, you can pass a path that points to a nvidia version file
|
||||||
nvidiaVersion
|
# # and let nixGL extract the version from it. That file must be a copy of
|
||||||
nvidiaVersionFile
|
# # /proc/driver/nvidia/version. Nix doesn't like zero-sized files (see
|
||||||
nvidiaHash
|
# # https://github.com/NixOS/nix/issues/3539 ).
|
||||||
enable32bits
|
# nvidiaVersionFile ? null,
|
||||||
;
|
# # Enable 32 bits driver
|
||||||
|
# # This is one by default, you can switch it to off if you want to reduce a
|
||||||
|
# # bit the size of nixGL closure.
|
||||||
|
# enable32bits ? true,
|
||||||
|
# # Make sure to enable config.allowUnfree to the instance of nixpkgs to be
|
||||||
|
# # able to access the nvidia drivers.
|
||||||
|
# pkgs ? import <nixpkgs> {
|
||||||
|
# config = { allowUnfree = true; };
|
||||||
|
# }
|
||||||
|
# }:
|
||||||
|
# pkgs.callPackage ./nixGL.nix {
|
||||||
|
# inherit
|
||||||
|
# nvidiaVersion
|
||||||
|
# nvidiaVersionFile
|
||||||
|
# nvidiaHash
|
||||||
|
# enable32bits
|
||||||
|
# ;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user