From 3486ba837bfff5466179b225efb9fa2f4883e1c5 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 6 May 2021 15:02:42 +0200 Subject: [PATCH] wip --- configs/sterni/configuration.nix | 4 +++- configs/workhorse/mining.nix | 7 +++---- images/etherminer/configuration.nix | 5 ++++- images/etherminer/parameters.nix.sample | 1 + 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/configs/sterni/configuration.nix b/configs/sterni/configuration.nix index d74fcac..dfa6879 100644 --- a/configs/sterni/configuration.nix +++ b/configs/sterni/configuration.nix @@ -71,7 +71,9 @@ # for congress and streaming hardware.opengl = { enable = true; - extraPackages = [ pkgs.vaapiIntel ]; + extraPackages = [ + pkgs.vaapiIntel + ]; driSupport = true; driSupport32Bit = true; }; diff --git a/configs/workhorse/mining.nix b/configs/workhorse/mining.nix index 0f27d61..d0bf057 100644 --- a/configs/workhorse/mining.nix +++ b/configs/workhorse/mining.nix @@ -30,14 +30,13 @@ in { }; - #nixpkgs.config.allowBroken = true; + # https://wiki.archlinux.org/title/GPGPU#Intel hardware.opengl = { enable = true; extraPackages = with pkgs; [ - vaapiIntel - libvdpau-va-gl - vaapiVdpau intel-ocl + intel-compute-runtime + beignet ]; driSupport = true; driSupport32Bit = true; diff --git a/images/etherminer/configuration.nix b/images/etherminer/configuration.nix index 80bfcd2..dcc709e 100644 --- a/images/etherminer/configuration.nix +++ b/images/etherminer/configuration.nix @@ -17,6 +17,8 @@ in }) ]; + users.users.root.initialPassword = "root"; + # allow un-free # ------------- nixpkgs.config.allowUnfree = true; @@ -34,7 +36,7 @@ in enable = true; pool = "eu1.ethermine.org"; wallet = parameters.wallet; - rig = "usb-stick"; + rig = parameters.rig; }; hardware.opengl = { @@ -47,6 +49,7 @@ in environment.systemPackages = with pkgs; [ go-ethereum i7z # check temperature + pciutils # lspci ]; } diff --git a/images/etherminer/parameters.nix.sample b/images/etherminer/parameters.nix.sample index b3d9a47..16a07cf 100644 --- a/images/etherminer/parameters.nix.sample +++ b/images/etherminer/parameters.nix.sample @@ -2,4 +2,5 @@ ssid = "Your SSID"; password = "Your Password"; wallet = "Your ETH Wallet Address"; + rig = "usb-stick"; }