Configure private Docker registry.

This commit is contained in:
Jonas Juselius
2017-09-15 20:54:08 +02:00
parent 229a08f229
commit 8a904384ef
4 changed files with 31 additions and 5 deletions

17
git.nix Normal file
View File

@@ -0,0 +1,17 @@
{
git01 = { config, lib, pkgs, ... }:
{
deployment.targetHost = "10.253.18.103";
networking.hostName = "git01"; # Define your hostname
imports = [ ./hw/git01.nix ./base/configuration.nix ];
services.nfs.server = {
enable=true;
exports= ''
/data 10.253.18.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
/vol 10.253.18.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
'';
};
networking.firewall.allowedTCPPorts = [2049 111 20048];
networking.firewall.allowedUDPPorts = [2049 111 20048];
};
}