cp tv/2/*CAC -> makefu/2/

This commit is contained in:
makefu 2016-06-13 16:22:51 +02:00
parent b9c0c46b4d
commit f256bbcb11
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
4 changed files with 49 additions and 10 deletions

View File

@ -1,15 +1,19 @@
{ config, pkgs, ... }:
let
ip = "64.137.235.70";
gw = "64.137.235.1";
ip = "64.137.234.215";
alt-ip = "64.137.234.210";
extra-ip = "64.137.234.114"; #currently unused
gw = "64.137.234.1";
in {
imports = [
../.
../../tv/2configs/hw/CAC.nix
../../tv/2configs/fs/CAC-CentOS-7-64bit.nix
../2configs/hw/CAC.nix
../2configs/fs/CAC-CentOS-7-64bit.nix
];
# minimal resources
services.nixosManual.enable = false;
programs.man.enable = false;
@ -21,10 +25,12 @@ in {
retiolum.enable = true;
build.host = config.krebs.hosts.shoney;
};
networking.interfaces.enp2s1.ip4 = [ {
address = ip;
prefixLength = 24;
} ];
networking.interfaces.enp2s1.ip4 = [
{ address = ip; prefixLength = 24; }
{ address = alt-ip; prefixLength = 24; }
];
networking.defaultGateway = gw;
networking.nameservers = [ "8.8.8.8" ];
networking.firewall.allowedUDPPorts = [ 655 1655 ];
networking.firewall.allowedTCPPorts = [ 655 1655 ];
}

View File

@ -9,8 +9,8 @@ in {
imports = [
../.
# TODO: copy this config or move to krebs
../../tv/2configs/hw/CAC.nix
../../tv/2configs/fs/CAC-CentOS-7-64bit.nix
../2configs/hw/CAC.nix
../2configs/fs/CAC-CentOS-7-64bit.nix
../2configs/headless.nix
../2configs/bepasty-dual.nix

View File

@ -0,0 +1,20 @@
_:
{
boot.loader.grub = {
device = "/dev/sda";
};
fileSystems = {
"/" = {
device = "/dev/centos/root";
fsType = "xfs";
};
"/boot" = {
device = "/dev/sda1";
fsType = "xfs";
};
};
swapDevices = [
{ device = "/dev/centos/swap"; }
];
}

View File

@ -0,0 +1,13 @@
_:
{
boot.initrd.availableKernelModules = [
"ata_piix"
"vmw_pvscsi"
];
boot.loader.grub.splashImage = null;
nix = {
daemonIONiceLevel = 1;
daemonNiceLevel = 1;
};
sound.enable = false;
}