Local changes
This commit is contained in:
parent
3932b91889
commit
51fcf8609b
@ -28,10 +28,13 @@ in {
|
|||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
nameservers = nameservers;
|
nameservers = nameservers;
|
||||||
|
|
||||||
defaultGateway = gateway;
|
# Don't set the gateway if we ARE the gateway.
|
||||||
|
# This is the most generic way I can think of to do that. local-network is really
|
||||||
|
# about running all the local servers (DNS, DHCP, and providing gateway).
|
||||||
|
defaultGateway = optionalString (config.fudo.local-network.enable != true) gateway;
|
||||||
|
|
||||||
# Until Comcast gets it's shit together... :(
|
# Until Comcast gets it's shit together... :(
|
||||||
enableIPv6 = false;
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
let
|
let
|
||||||
hostname = "nostromo.sea.fudo.org";
|
hostname = "nostromo.sea.fudo.org";
|
||||||
host-internal-ip = "10.0.0.1";
|
host-internal-ip = "10.0.0.1";
|
||||||
local-gateway = "10.0.0.1";
|
|
||||||
inherit (lib.strings) concatStringsSep;
|
inherit (lib.strings) concatStringsSep;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
@ -30,7 +29,7 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
# See fudo/sites/seattle.nix for general settings
|
# See fudo/sites/seattle.nix for general settings
|
||||||
dns-servers = [ host-internal-ip ];
|
dns-servers = [ host-internal-ip ];
|
||||||
gateway = local-gateway;
|
gateway = host-internal-ip;
|
||||||
dhcp-interfaces = [ "intif0" ];
|
dhcp-interfaces = [ "intif0" ];
|
||||||
dns-serve-ips = [ host-internal-ip "127.0.0.1" "127.0.1.1" ];
|
dns-serve-ips = [ host-internal-ip "127.0.0.1" "127.0.1.1" ];
|
||||||
# Using a pihole running in docker, see below
|
# Using a pihole running in docker, see below
|
||||||
@ -39,27 +38,21 @@ in {
|
|||||||
server-ip = host-internal-ip;
|
server-ip = host-internal-ip;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fudo.slynk = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = hostname;
|
hostName = hostname;
|
||||||
|
|
||||||
# defaultGateway = local-gateway;
|
|
||||||
|
|
||||||
nameservers = [ host-internal-ip ];
|
nameservers = [ host-internal-ip ];
|
||||||
|
|
||||||
# Turn off for hypervisor: dhcp by default everywhere is a fuckin pain.
|
|
||||||
#dhcpcd.enable = true;
|
|
||||||
|
|
||||||
# Create a bridge for VMs to use
|
# Create a bridge for VMs to use
|
||||||
macvlans = {
|
macvlans = {
|
||||||
intif0 = {
|
intif0 = {
|
||||||
interface = "eno1";
|
interface = "eno1";
|
||||||
mode = "bridge";
|
mode = "bridge";
|
||||||
};
|
};
|
||||||
|
|
||||||
# extif0 = {
|
|
||||||
# interface = "eno2";
|
|
||||||
# mode = "bridge";
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
interfaces = {
|
interfaces = {
|
||||||
@ -73,7 +66,6 @@ in {
|
|||||||
|
|
||||||
eno2.useDHCP = true;
|
eno2.useDHCP = true;
|
||||||
|
|
||||||
|
|
||||||
intif0 = {
|
intif0 = {
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
macAddress = "46:54:76:06:f1:10";
|
macAddress = "46:54:76:06:f1:10";
|
||||||
@ -88,10 +80,6 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# extif0 = {
|
|
||||||
# useDHCP = true;
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nat = {
|
nat = {
|
||||||
@ -121,6 +109,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
dnsproxy
|
||||||
libguestfs-with-appliance
|
libguestfs-with-appliance
|
||||||
libvirt
|
libvirt
|
||||||
virtmanager
|
virtmanager
|
||||||
@ -159,9 +148,9 @@ in {
|
|||||||
"/srv/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/"
|
"/srv/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/"
|
||||||
];
|
];
|
||||||
# TODO: DNS-over-HTTPS via cloudflared
|
# TODO: DNS-over-HTTPS via cloudflared
|
||||||
extraDockerOptions = [
|
# extraDockerOptions = [
|
||||||
"--dns=1.1.1.1"
|
# "--dns=1.1.1.1"
|
||||||
];
|
# ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -199,32 +188,32 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ceph = {
|
# ceph = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
|
|
||||||
global = {
|
# global = {
|
||||||
clusterName = "sea-data";
|
# clusterName = "sea-data";
|
||||||
clusterNetwork = "10.0.10.0/24";
|
# clusterNetwork = "10.0.10.0/24";
|
||||||
fsid = "d443e192-896d-4102-a60f-f8f0777eb2a3";
|
# fsid = "d443e192-896d-4102-a60f-f8f0777eb2a3";
|
||||||
monHost = "10.0.10.2";
|
# monHost = "10.0.10.2";
|
||||||
monInitialMembers = "mon-1";
|
# monInitialMembers = "mon-1";
|
||||||
publicNetwork = "10.0.0.0/22";
|
# publicNetwork = "10.0.0.0/22";
|
||||||
};
|
# };
|
||||||
|
|
||||||
mds = {
|
# mds = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
daemons = ["srv-2"];
|
# daemons = ["srv-2"];
|
||||||
};
|
# };
|
||||||
|
|
||||||
mgr = {
|
# mgr = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
daemons = ["srv-2"];
|
# daemons = ["srv-2"];
|
||||||
};
|
# };
|
||||||
|
|
||||||
mon = {
|
# mon = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
daemons = ["srv-2"];
|
# daemons = ["srv-2"];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user