jeeves conversion
This commit is contained in:
parent
bc44ead6f3
commit
95547074ef
@ -6,18 +6,13 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
../../users/richie/global/ssh.nix
|
../../users/richie/global/ssh.nix
|
||||||
../../users/richie/global/syncthing_base.nix
|
../../users/richie/global/syncthing_base.nix
|
||||||
../../users/richie/global/zerotier.nix
|
|
||||||
./arch_mirror.nix
|
./arch_mirror.nix
|
||||||
./docker
|
./docker
|
||||||
|
./networking.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostId = "1beb3027";
|
|
||||||
firewall.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
zfs.extraPools = [
|
zfs.extraPools = [
|
||||||
"media"
|
"media"
|
||||||
|
@ -40,17 +40,6 @@
|
|||||||
|
|
||||||
swapDevices = [ { device = "/dev/disk/by-uuid/4c797a94-be32-43d3-89ac-7f02912c7cf5"; } ];
|
swapDevices = [ { device = "/dev/disk/by-uuid/4c797a94-be32-43d3-89ac-7f02912c7cf5"; } ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp38s0f3u2u2c2.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp97s0f0np0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp97s0f1np1.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp98s0f0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp98s0f1.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
40
systems/jeeves/networking.nix
Normal file
40
systems/jeeves/networking.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
networking = {
|
||||||
|
hostId = "1beb3027";
|
||||||
|
firewall.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.network = {
|
||||||
|
enable = true;
|
||||||
|
networks = {
|
||||||
|
"10-1GB_Primary" = {
|
||||||
|
matchConfig.Name = "enp98s0f0";
|
||||||
|
DHCP = "yes";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networks = {
|
||||||
|
"10-1GB_Secondary" = {
|
||||||
|
matchConfig.Name = "enp98s0f1";
|
||||||
|
DHCP = "yes";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networks = {
|
||||||
|
"10-10GB_Primary" = {
|
||||||
|
matchConfig.Name = "enp97s0f0np0";
|
||||||
|
DHCP = "yes";
|
||||||
|
linkConfig.RequiredForOnline = "routable";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networks = {
|
||||||
|
"10-10GB_Secondary" = {
|
||||||
|
matchConfig.Name = "enp97s0f1np1";
|
||||||
|
DHCP = "yes";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.zerotierone = {
|
||||||
|
enable = true;
|
||||||
|
joinNetworks = [ "e4da7455b2ae64ca" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user