Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let
- nixpkgs = builtins.fetchTarball {
- url = "https://github.com/ravloony/nixpkgs/archive/4a1735ff56fb817c9535cc90c6e3b478ff69113a.tar.gz";
- sha256 = "0b06askrd4px5j9yv3g8gpvhv0dk58ix7v5h8xsiwqvy1vsq9zpc";
- };
- pkgs = import nixpkgs { config = { }; };
- testStatusHost =
- hostName: databasePassword: secretKeyBase:
- {
- networking.firewall.allowedTCPPorts = [ 22 80 443 ];
- powerManagement.cpuFreqGovernor = null; #Fix nixops bug
- i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "en_GB.UTF-8/UTF-8" ];
- time.timeZone = "Europe/Vienna";
- networking.hostName = hostName;
- services.openssh.enable = true;
- services.staytus = {
- enable = true;
- databasePassword = databasePassword;
- secretKeyBase = secretKeyBase;
- smtpHost = "smtp.sendgrid.net";
- smtpPort = "587";
- smtpUsername = "dithdithdithdi";
- smtpPassword = "thdnthdnthdn";
- pumaDebug = true;
- themes = {
- test = ./files/test.zip;
- };
- theme = "test";
- enableACME = false;
- };
- services.nginx.enable = true;
- services.mysql = {
- enable = true;
- package = pkgs.mariadb;
- };
- deployment.targetEnv = "virtualbox";
- deployment.virtualbox.memorySize = 1024; # megabytes
- deployment.virtualbox.vcpu = 2; # number of cpus
- };
- in {
- network.description = "Test status network";
- teststatus = testStatusHost "status.local" "wowmuchsecret" "evensecreter";
- }
Advertisement
Add Comment
Please, Sign In to add comment