]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Upgrade xmr stak
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 23 Feb 2020 16:01:31 +0000 (17:01 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 23 Feb 2020 16:01:31 +0000 (17:01 +0100)
modules/private/system/dilion.nix
overlays/default.nix
overlays/xmr-stak/default.nix [new file with mode: 0644]

index ab135b23ed449ed53a66cc1db249a3a9cf376b43..722485814f21beacef4e29ee7418f3fc44b13ebc 100644 (file)
@@ -68,6 +68,7 @@
     }
   ];
 
+  boot.kernel.sysctl."vm.nr_hugepages" = 256; # for xmr-stak
   system.activationScripts.backup_home = ''
     chown root:root /var/lib/backup
     install -m 0750 -o backup -g root -d /var/lib/backup/eldiron
index 85cc0fb564dae1857dfe173651e003a507cc4252..b0470d21a650b0cdda6adeb34c08af612dcc0c75 100644 (file)
@@ -29,5 +29,6 @@
   weechat = import ./weechat;
   ympd = import ./ympd;
   doing = import ./doing;
+  xmr-stak = import ./xmr-stak;
 }
 // import ./python-packages
diff --git a/overlays/xmr-stak/default.nix b/overlays/xmr-stak/default.nix
new file mode 100644 (file)
index 0000000..51201ac
--- /dev/null
@@ -0,0 +1,13 @@
+self: super: {
+  xmr-stak = super.xmr-stak.overrideAttrs(old: rec {
+    name = "xmr-stak-${version}";
+    version = "1.0.4-rx";
+    src = super.fetchFromGitHub {
+      owner = "fireice-uk";
+      repo = "xmr-stak";
+      rev = version;
+      sha256 = "1gsvm279i5jdcjhxsllnkyws6rq0n6qz4j9mg22fwvbgj5ms0gwp";
+    };
+    postPatch = "";
+  });
+}