Merge branch 'master' of pnp:stockholm
This commit is contained in:
commit
5ac356be52
@ -66,6 +66,7 @@ prepare_debian() {
|
|||||||
type bzip2 2>/dev/null || apt-get install bzip2
|
type bzip2 2>/dev/null || apt-get install bzip2
|
||||||
type git 2>/dev/null || apt-get install git
|
type git 2>/dev/null || apt-get install git
|
||||||
type rsync 2>/dev/null || apt-get install rsync
|
type rsync 2>/dev/null || apt-get install rsync
|
||||||
|
type curl 2>/dev/null || apt-get install curl
|
||||||
prepare_common
|
prepare_common
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ let out = {
|
|||||||
inherit infest;
|
inherit infest;
|
||||||
inherit init;
|
inherit init;
|
||||||
inherit nixos-install;
|
inherit nixos-install;
|
||||||
|
inherit populate;
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy =
|
deploy =
|
||||||
|
@ -9,24 +9,41 @@ in {
|
|||||||
# TODO: copy this config or move to krebs
|
# TODO: copy this config or move to krebs
|
||||||
../2configs/tinc-basic-retiolum.nix
|
../2configs/tinc-basic-retiolum.nix
|
||||||
../2configs/headless.nix
|
../2configs/headless.nix
|
||||||
|
../2configs/fs/single-partition-ext4.nix
|
||||||
# ../2configs/iodined.nix
|
# ../2configs/iodined.nix
|
||||||
|
|
||||||
# Reaktor
|
|
||||||
../2configs/Reaktor/simpleExtend.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
krebs.build.target = "root@gum.krebsco.de";
|
||||||
krebs.build.host = config.krebs.hosts.gum;
|
krebs.build.host = config.krebs.hosts.gum;
|
||||||
|
|
||||||
krebs.Reaktor.enable = true;
|
# Hardware
|
||||||
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
boot.initrd.availableKernelModules = [ "pata_via" "uhci_hcd" ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
# prepare graphs
|
# Network
|
||||||
krebs.nginx.enable = true;
|
|
||||||
|
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
SUBSYSTEM=="net", ATTR{address}=="c8:0a:a9:c8:ee:dd", NAME="et0"
|
||||||
|
'';
|
||||||
networking = {
|
networking = {
|
||||||
firewall.allowPing = true;
|
firewall = {
|
||||||
firewall.allowedTCPPorts = [ 80 443 655 ];
|
allowPing = true;
|
||||||
firewall.allowedUDPPorts = [ 655 ];
|
allowedTCPPorts = [
|
||||||
interfaces.enp2s1.ip4 = [{
|
# smtp
|
||||||
|
25
|
||||||
|
# http
|
||||||
|
80 443
|
||||||
|
# tinc
|
||||||
|
655
|
||||||
|
];
|
||||||
|
allowedUDPPorts = [
|
||||||
|
# tinc
|
||||||
|
655 53
|
||||||
|
];
|
||||||
|
};
|
||||||
|
interfaces.et0.ip4 = [{
|
||||||
address = external-ip;
|
address = external-ip;
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}];
|
}];
|
||||||
@ -34,5 +51,4 @@ in {
|
|||||||
nameservers = [ "8.8.8.8" ];
|
nameservers = [ "8.8.8.8" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# based on ../../tv/2configs/CAC-Developer-2.nix
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user