Skip to content

Commit 122210c

Browse files
committed
rigtora small fix
1 parent d057847 commit 122210c

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

nix/configuration.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,12 @@ in {
835835
modifier = mod;
836836
menu = "bemenu-run";
837837
defaultWorkspace = "workspace number 1";
838+
output = {
839+
DVI-D-1 = {
840+
841+
# mode = "[email protected]";
842+
};
843+
};
838844
#
839845
# TODO : remove when kanshi service bug is fixed:
840846
# https://github.com/nix-community/home-manager/issues/2797

nix/rigtora.nix

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# wifiPwd = "TODO";
1010
xmrAddr = config.services.rigtora.xmrAddr;
1111
xmrSolo = config.services.rigtora.xmrSolo;
12-
cpuLoad = config.services.rigtora.cpuLoad;
1312
in {
1413
imports = [
1514
];
@@ -18,6 +17,7 @@ in {
1817
enable = mkEnableOption "rigtora";
1918
xmrAddr = mkOption {
2019
type = types.str;
20+
default = "48sTw2TvjuWKkaomi9J7gLExRUJLJCvUHLrbf8M8qmayQ9zkho1GYdCXVtpTPawNWH7mNS49N4E6HNDF95dtggMMCigrVyG";
2121
};
2222
xmrSolo = mkOption {
2323
type = types.bool;
@@ -26,10 +26,6 @@ in {
2626
cpuName = mkOption {
2727
type = types.str;
2828
};
29-
cpuLoad = mkOption {
30-
type = types.int;
31-
default = null;
32-
};
3329
openSsh = mkOption {
3430
type = types.bool;
3531
default = false;
@@ -50,7 +46,7 @@ in {
5046
#
5147
# TODO : script to derive cpuName
5248
#
53-
environment.systemPackages = with pkgs; [vim htop cpuid];
49+
environment.systemPackages = with pkgs; [git vim htop cpuid];
5450
services.journald.extraConfig = ''
5551
SystemMaxUse=100M
5652
MaxFileSec=7day
@@ -60,18 +56,10 @@ in {
6056
services.openssh.enable = config.services.rigtora.openSsh;
6157
services.xmrig.enable = true;
6258
services.xmrig.settings = {
59+
cpu.enabled = true;
6360
autosave = false;
6461
opencl = false;
6562
cuda = false;
66-
cpu =
67-
{
68-
enabled = true;
69-
}
70-
// (
71-
if cpuLoad == null
72-
then {}
73-
else {priority = cpuLoad;}
74-
);
7563
pools = [
7664
{
7765
url = "pool.hashvault.pro:80";

prv

Submodule prv updated from 5b3b987 to 1985a7f

0 commit comments

Comments
 (0)