mio-ops/roles/iohk.nix
2020-06-12 13:30:19 +10:00

59 lines
1.9 KiB
Nix

# NixOps configuration for the hosts utilising IOHK resources
{ config, pkgs, lib, ... }:
{
nix = {
extraOptions = ''
#repeat = 1 # Ensure reproducibility of builds
'';
};
nix.binaryCaches = [
"https://cache.nixos.org"
"https://hydra.iohk.io"
];
nix.binaryCachePublicKeys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
];
# Set the system-wide environment
environment = {
systemPackages = with pkgs; [
awscli # Unified tool to manage your AWS services
buildkite-agent # Buildkite for IOHK
#crystal # A compiled language with Ruby like syntax and type inference
docker # Pack, ship and run any application as a lightweight container
docker-compose # Multi-container orchestration for Docker
freerdp # A Remote Desktop Protocol Client, xfreerdp
gist # Upload code to https://gist.github.com (or github enterprise)
gnupg # GNU Privacy Guard, a GPL OpenPGP implementation
go-jira # Simple command line client for Atlassian's Jira service written in Go
#icr # Interactive console for the Crystal programming languag
jq # A lightweight and flexible command-line JSON processor
keybase-gui # The Keybase official client
scry # Code analysis server for the Crystal programming language
shards # Dependency manager for the Crystal language
slack-dark # Slack desktop client
];
variables = {
NIX_SKIP_KEYBASE_CHECKS = "1"; # As per IOHK Keybase reqs
};
};
virtualisation.docker.enable = true;
services = {
keybase.enable = true;
#postgresql = {
# enable = true; # Ensure postgresql is enabled
# package = pkgs.postgresql_10; # Set the required version, if needed
};
users.groups.docker.members = [
"craige"
];
}