Add implementation prototype for router function
This commit is contained in:
parent
c27573f72d
commit
571684592d
3 changed files with 71 additions and 31 deletions
|
@ -4,11 +4,33 @@
|
|||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let routerConfig = {
|
||||
wanCardAddress = "00:0d:b9:51:a2:74";
|
||||
wireless = {
|
||||
country = "CH";
|
||||
wleInterface = "wlp5s0";
|
||||
wleSSID = "hauser";
|
||||
wlePassphrase = "a5e42b914b5ad2b7e0474c3b9b35d0843a52668d30cd6aa8650ec43263a60b6e";
|
||||
};
|
||||
lanInterfaces = [ "enp2s0" "enp3s0" "enp3s0" ];
|
||||
lanNetwork = {
|
||||
routerAddress = "10.2.1.1";
|
||||
netid = "10.2.1.0";
|
||||
revIpDomain = "1.2.10";
|
||||
prefixLength = 24;
|
||||
domain = "rappi.fh2.ch";
|
||||
dhcpRange = "10.2.1.2,10.2.1.249";
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
../hardware/apu.nix
|
||||
../role/base.nix
|
||||
(import ../role/router.nix routerConfig)
|
||||
];
|
||||
|
||||
fileSystems."/" =
|
||||
|
@ -31,12 +53,12 @@
|
|||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||
|
||||
networking.hostName = "achiles"; # Define your hostname.
|
||||
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.wireless.networks = {
|
||||
yummi = {
|
||||
psk = "cookies!";
|
||||
};
|
||||
};
|
||||
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
#networking.wireless.networks = {
|
||||
# yummi = {
|
||||
# psk = "cookies!";
|
||||
# };
|
||||
#};
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
[
|
||||
../hardware/apu.nix
|
||||
../role/base.nix
|
||||
../role/router.nix
|
||||
# ../role/router.nix #TODO
|
||||
];
|
||||
|
||||
fileSystems."/" =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue