Created
June 5, 2018 18:53
-
-
Save infinisil/cca1d208685c39a3fe0c564b5d63c65b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs/lib>; | |
let | |
app = pkgs.callPackage ./default.nix {}; | |
in { | |
network.description = "whup"; | |
} // listToAttrs (map (n: nameValuePair "agent${toString n}" ( | |
{ pkgs, ... }: | |
let app = pkgs.callPackage ./default.nix {}; | |
in { | |
networking.firewall.enable = false; | |
systemd.services.wallet = { | |
enable = true; | |
wantedBy = ["multi-user.target"]; | |
description = "Agent"; | |
after = [ "network-online.target" ]; | |
script='' | |
${app}/bin/app.py | |
''; | |
}; | |
services.openssh.enable = true; | |
} | |
)) (range 1 10)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs/lib>; | |
listToAttrs (map (n: nameValuePair "agent${toString n}" { | |
deployment.targetEnv = "virtualbox"; | |
deployment.virtualbox.headless = true; | |
}) (range 1 10)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment