zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
{
  config,
  lib,
  ...
}:

{

  options.common.profiles.netcup.enable = lib.mkEnableOption "netcup vserver profile";

  config = lib.mkIf config.common.profiles.netcup.enable {
    boot = {
      initrd.availableKernelModules = [
        "ata_piix"
        "uhci_hcd"
        "virtio_pci"
        "sr_mod"
        "virtio_blk"
      ];
    };

    common.configure.primaryNetworkInterface = {
      interfaceName = "ens3";
      ip6DefaultGateway = "fe80::1";
      dnsServers = [
        "46.38.225.230"
        "46.38.252.230"
        "2a03:4000:0:1::e1e6"
        "2a03:4000:8000::fce6"
      ];
    };
  };

}