Add OpenCL on rainbowdash

This commit is contained in:
Artemis Tosini 2022-10-15 20:09:27 +00:00
parent fa1388d82b
commit 1563ba4fcf
Signed by: artemist
GPG key ID: EE5227935FE3FF18
3 changed files with 18 additions and 14 deletions

View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1656169755,
"narHash": "sha256-Nlnm4jeQWEGjYrE6hxi/7HYHjBSZ/E0RtjCYifnNsWk=",
"lastModified": 1665475263,
"narHash": "sha256-T4at7d+KsQNWh5rfjvOtQCaIMWjSDlSgQZKvxb+LcEY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "4a3d01fb53f52ac83194081272795aa4612c2381",
"rev": "17208be516fc36e2ab0ceb064d931e90eb88b2a3",
"type": "github"
},
"original": {
@ -23,11 +23,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1665321371,
"narHash": "sha256-0SO6MTW0bX6lxZmz1AZW/Xmk+hnTd7/hp1vF7Tp7jg0=",
"lastModified": 1665839131,
"narHash": "sha256-0KYo13PfwvPw5i/SC+hGy3hsgR++Co7SIzv+0e9YOnM=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "236ba4df714131059945d7754c0aa3fbe9d2f74c",
"rev": "674d05f9ae2249d606a0e6fc63e522d2031a27ac",
"type": "github"
},
"original": {
@ -38,11 +38,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1665132027,
"narHash": "sha256-zoHPqSQSENt96zTk6Mt1AP+dMNqQDshXKQ4I6MfjP80=",
"lastModified": 1665613119,
"narHash": "sha256-VTutbv5YKeBGWou6ladtgfx11h6et+Wlkdyh4jPJ3p0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9ecc270f02b09b2f6a76b98488554dd842797357",
"rev": "e06bd4b64bbfda91d74f13cb5eca89485d47528f",
"type": "github"
},
"original": {
@ -54,11 +54,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1665259268,
"narHash": "sha256-ONFhHBLv5nZKhwV/F2GOH16197PbvpyWhoO0AOyktkU=",
"lastModified": 1665732960,
"narHash": "sha256-WBZ+uSHKFyjvd0w4inbm0cNExYTn8lpYFcHEes8tmec=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c5924154f000e6306030300592f4282949b2db6c",
"rev": "4428e23312933a196724da2df7ab78eb5e67a88e",
"type": "github"
},
"original": {

View file

@ -14,7 +14,6 @@
environment = {
variables.EDITOR = "nvim";
variables.TERMINAL = "alacritty";
variables.OCL_ICD_VENDORS = "/run/opengl-driver/etc/OpenCL/vendors";
enableDebugInfo = true;
};

View file

@ -1,4 +1,4 @@
{ config, inputs, ... }:
{ config, pkgs, inputs, ... }:
{
imports = [
@ -41,6 +41,11 @@
'';
};
# Not in nixos-hardware for some reason
hardware.opengl.extraPackages = with pkgs; [
intel-compute-runtime
];
boot.blacklistedKernelModules = [ "psmouse" ];
services.thermald.enable = true;