aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/private/system/dilion.nix1
-rw-r--r--overlays/default.nix1
-rw-r--r--overlays/xmr-stak/default.nix13
3 files changed, 15 insertions, 0 deletions
diff --git a/modules/private/system/dilion.nix b/modules/private/system/dilion.nix
index ab135b2..7224858 100644
--- a/modules/private/system/dilion.nix
+++ b/modules/private/system/dilion.nix
@@ -68,6 +68,7 @@
68 } 68 }
69 ]; 69 ];
70 70
71 boot.kernel.sysctl."vm.nr_hugepages" = 256; # for xmr-stak
71 system.activationScripts.backup_home = '' 72 system.activationScripts.backup_home = ''
72 chown root:root /var/lib/backup 73 chown root:root /var/lib/backup
73 install -m 0750 -o backup -g root -d /var/lib/backup/eldiron 74 install -m 0750 -o backup -g root -d /var/lib/backup/eldiron
diff --git a/overlays/default.nix b/overlays/default.nix
index 85cc0fb..b0470d2 100644
--- a/overlays/default.nix
+++ b/overlays/default.nix
@@ -29,5 +29,6 @@
29 weechat = import ./weechat; 29 weechat = import ./weechat;
30 ympd = import ./ympd; 30 ympd = import ./ympd;
31 doing = import ./doing; 31 doing = import ./doing;
32 xmr-stak = import ./xmr-stak;
32} 33}
33// import ./python-packages 34// import ./python-packages
diff --git a/overlays/xmr-stak/default.nix b/overlays/xmr-stak/default.nix
new file mode 100644
index 0000000..51201ac
--- /dev/null
+++ b/overlays/xmr-stak/default.nix
@@ -0,0 +1,13 @@
1self: super: {
2 xmr-stak = super.xmr-stak.overrideAttrs(old: rec {
3 name = "xmr-stak-${version}";
4 version = "1.0.4-rx";
5 src = super.fetchFromGitHub {
6 owner = "fireice-uk";
7 repo = "xmr-stak";
8 rev = version;
9 sha256 = "1gsvm279i5jdcjhxsllnkyws6rq0n6qz4j9mg22fwvbgj5ms0gwp";
10 };
11 postPatch = "";
12 });
13}