2016-01-28 02:59:31 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2016-04-14 14:02:16 +02:00
|
|
|
let
|
|
|
|
ipconf = (import <secrets>).ipconf.${config.networking.hostName};
|
|
|
|
in
|
2016-01-28 02:59:31 +01:00
|
|
|
{
|
2016-04-14 14:02:16 +02:00
|
|
|
imports = [ ../nixos-in-place.nix ];
|
|
|
|
"nixos-in-place" = {
|
|
|
|
enable = true;
|
|
|
|
rootfs = "/dev/mapper/CAC_VG-CAC_LV";
|
|
|
|
swapfs = "/dev/disk/by-uuid/be7625e5-2e2c-41f2-8d5f-331f90980b9e";
|
|
|
|
};
|
2016-01-28 02:59:31 +01:00
|
|
|
boot = {
|
2016-04-14 14:02:16 +02:00
|
|
|
loader.grub.device = "/dev/sda";
|
|
|
|
initrd.availableKernelModules = [ "ata_piix" "vmw_pvscsi" "floppy" ];
|
2016-01-28 02:59:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
interfaces.enp2s0 = {
|
2016-04-14 14:02:16 +02:00
|
|
|
useDHCP = false;
|
|
|
|
inherit (ipconf) ip4 ip6;
|
2016-01-28 02:59:31 +01:00
|
|
|
};
|
2016-04-14 14:02:16 +02:00
|
|
|
inherit (ipconf) nameservers;
|
|
|
|
defaultGateway = ipconf.gateway4;
|
|
|
|
#defaultGateway6 = ipconf.gateway6;
|
2016-01-28 02:59:31 +01:00
|
|
|
};
|
2016-04-14 14:02:16 +02:00
|
|
|
|
2016-01-28 02:59:31 +01:00
|
|
|
nix.maxJobs = 1;
|
|
|
|
|
|
|
|
}
|