my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux
12
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 41 lines 1.0 kB view raw
1# if you want my honest opinion on crypto i hate it. but this is basically free 2# money since i have a good computer and my electric is free, so why not 3{ 4 self, 5 pkgs, 6 config, 7 ... 8}: 9let 10 inherit (self.lib) mkServiceOption; 11in 12{ 13 options.garden.services.xmrig = mkServiceOption "xmrig" { }; 14 15 config = { 16 services.xmrig = { 17 inherit (config.garden.services.xmrig) enable; 18 19 settings = { 20 autosave = true; 21 cpu = true; 22 opencl = false; 23 cuda = { 24 enabled = true; 25 loader = "${pkgs.pkgsCuda.xmrig-cuda}/lib/libxmrig-cuda.so"; 26 }; 27 28 pools = [ 29 { 30 url = "pool.hashvault.pro:443"; 31 user = "43eSyrtuhm2JSoot8Kp74ANpabMmHaj5uKtyBwa4ZtixA5gcWxxPFj2PnxU7dDyfs4MLqcKSRbmvgCRXqfKkhiRoNsjTkPU"; 32 pass = config.networking.hostName; 33 keepalive = true; 34 tls = true; 35 tls-fingerprint = "420c7850e09b7c0bdcf748a7da9eb3647daf8515718f36d9ccfdd6b9ff834b14"; 36 } 37 ]; 38 }; 39 }; 40 }; 41}