Guest User

Untitled

a guest
Oct 2nd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. let
  2. nixpkgs = builtins.fetchTarball {
  3. url = "https://github.com/ravloony/nixpkgs/archive/4a1735ff56fb817c9535cc90c6e3b478ff69113a.tar.gz";
  4. sha256 = "0b06askrd4px5j9yv3g8gpvhv0dk58ix7v5h8xsiwqvy1vsq9zpc";
  5. };
  6.  
  7. pkgs = import nixpkgs { config = { }; };
  8. testStatusHost =
  9. hostName: databasePassword: secretKeyBase:
  10. {
  11.  
  12. networking.firewall.allowedTCPPorts = [ 22 80 443 ];
  13.  
  14. powerManagement.cpuFreqGovernor = null; #Fix nixops bug
  15. i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "en_GB.UTF-8/UTF-8" ];
  16.  
  17. time.timeZone = "Europe/Vienna";
  18.  
  19. networking.hostName = hostName;
  20.  
  21. services.openssh.enable = true;
  22.  
  23. services.staytus = {
  24. enable = true;
  25. databasePassword = databasePassword;
  26. secretKeyBase = secretKeyBase;
  27. smtpHost = "smtp.sendgrid.net";
  28. smtpPort = "587";
  29. smtpUsername = "dithdithdithdi";
  30. smtpPassword = "thdnthdnthdn";
  31. pumaDebug = true;
  32. themes = {
  33. test = ./files/test.zip;
  34. };
  35. theme = "test";
  36. enableACME = false;
  37. };
  38.  
  39. services.nginx.enable = true;
  40.  
  41. services.mysql = {
  42. enable = true;
  43. package = pkgs.mariadb;
  44. };
  45.  
  46. deployment.targetEnv = "virtualbox";
  47. deployment.virtualbox.memorySize = 1024; # megabytes
  48. deployment.virtualbox.vcpu = 2; # number of cpus
  49. };
  50.  
  51. in {
  52. network.description = "Test status network";
  53. teststatus = testStatusHost "status.local" "wowmuchsecret" "evensecreter";
  54. }
Advertisement
Add Comment
Please, Sign In to add comment