Switch montalin to meta-configuration
This commit is contained in:
parent
0f1c70207a
commit
f5668614bd
3 changed files with 12 additions and 8 deletions
|
@ -1,19 +1,23 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
let
|
||||
meta = import ../../meta;
|
||||
plessur-net = meta.network.physical-networks.plessur;
|
||||
montalin-net = plessur-net.dmz.hosts.montalin;
|
||||
in {
|
||||
networking.hostName = "montalin"; # Define your hostname.
|
||||
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.eno1 = {
|
||||
ipv4.addresses = [{
|
||||
address = "10.1.2.2";
|
||||
prefixLength = 24;
|
||||
address = montalin-net.v4.ip;
|
||||
prefixLength = plessur-net.lan.v4.bitmask;
|
||||
}];
|
||||
};
|
||||
networking.interfaces.wlp1s0.useDHCP = true;
|
||||
|
||||
networking.defaultGateway = "10.1.2.1";
|
||||
networking.nameservers = [ "10.1.2.1" ];
|
||||
networking.defaultGateway = plessur-net.lan.v4.gateway;
|
||||
networking.nameservers = plessur-net.lan.v4.nameservers;
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
{
|
||||
network = import ./network.nix;
|
||||
}
|
||||
{ network = import ./network.nix; }
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
plessur.lan = {
|
||||
v4 = {
|
||||
id = "10.1.1.0";
|
||||
gateway = "10.1.2.1";
|
||||
bitmask = 24;
|
||||
nameservers = [ "10.1.2.1" ];
|
||||
};
|
||||
|
||||
hosts = { calanda.v4.ip = "10.1.1.1"; };
|
||||
|
|
Loading…
Add table
Reference in a new issue