dotfiles/ospinio/hardware-configuration.nix

30 lines
686 B
Nix
Raw Normal View History

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-21 22:35:13 +02:00
imports = [ ../modules/nixos-in-place.nix ];
2016-04-14 14:02:16 +02:00
"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;
}