Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Nix by TonyTheLion ( 6 years ago )
{ config, lib, pkgs, ... }:

with lib;

{
  imports = [ <nixpkgs> ];
  ec2.hvm = true;

  # Set timezone
  time.timeZone = "Europe/London";

  services.postgresql.enable = true;
 
  # networking
  networking.firewall.enable = false;

  # Select internationalization properties.
  i18n = {
      consoleFont = "Lat2-Terminus16";
      consoleKeyMap = "us";
      defaultLocale = "en_US.UTF-8";
  };
 
  # System packages
  environment.systemPackages = with pkgs; [
 wget vim
        wget git
  ];

  ## Hydra configuration (recommended by nixos IRC channel to do it here as running just hydra-server is not enough)
 
  nix.trustedUsers = [ "hydra" ];  
  nix.buildMachines = [
    { hostName = "localhost"; sshKey = "/var/run/keys/hydra_rsa"; system = "x86_64-linux,i686-linux"; maxJobs = 4; supportedFeatures = [ "kvm" ]; }
  ];

  services.nginx.enable = true;
  services.nginx.recommendedGzipSettings = true;
  services.nginx.recommendedOptimisation = true;
  services.nginx.recommendedProxySettings = true;

  services.hydra.enable = true;
  services.hydra.hydraURL = "my-server-url.com";
  services.hydra.notificationSender = "[email protected]";
  services.hydra.listenHost = "0.0.0.0";
  services.hydra.port = 3000;
  services.hydra.useSubstitutes = true;
  users.users.hydra.extraGroups = [ "wheel" "keys" ];
  users.users.hydra-queue-runner.extraGroups = [ "wheel" "keys" ];
  system.stateVersion = "17.09";
}

 

Revise this Paste

Your Name: Code Language: