mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-23 15:31:57 +00:00
Added cuda support
This commit is contained in:
@@ -83,6 +83,7 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
cudaSupport = true;
|
||||||
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
||||||
allowUnfreePredicate = _: true;
|
allowUnfreePredicate = _: true;
|
||||||
};
|
};
|
||||||
@@ -92,6 +93,7 @@
|
|||||||
unstablePkgs = import nixpkgs-unstable {
|
unstablePkgs = import nixpkgs-unstable {
|
||||||
# We also need to do the same for unstable
|
# We also need to do the same for unstable
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
cudaSupport = true;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowUnfreePredicate = _: true;
|
allowUnfreePredicate = _: true;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.config.cudaSupport = true;
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
# Modesetting is required.
|
# Modesetting is required.
|
||||||
|
|||||||
Reference in New Issue
Block a user