40 lines
859 B
Nix
40 lines
859 B
Nix
|
{ lib, ... }:
|
||
|
|
||
|
lib.extra.mkConfig {
|
||
|
enabledModules = [
|
||
|
# List of modules to enable
|
||
|
];
|
||
|
|
||
|
enabledServices = [
|
||
|
# List of services to enable
|
||
|
"nsd"
|
||
|
];
|
||
|
|
||
|
extraConfig = {
|
||
|
users.users.root.openssh.authorizedKeys.keys = [
|
||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMBW7rTtfZL9wtrpCVgariKdpN60/VeAzXkh9w3MwbO julien@enigma"
|
||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrijwPlb7KQkYPLznMPVzPPT69cLzhEsJzZi9tmxzTh cst1@x270"
|
||
|
];
|
||
|
systemd.network = {
|
||
|
config.routeTables = {
|
||
|
he = 100;
|
||
|
mwan = 110;
|
||
|
};
|
||
|
networks = {
|
||
|
"10-ens18" = {
|
||
|
name = "ens18";
|
||
|
|
||
|
networkConfig = {
|
||
|
Description = "ENS uplink";
|
||
|
Address = [ "129.199.146.102/24" ];
|
||
|
Gateway = "129.199.146.254";
|
||
|
LLDP = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
root = ./.;
|
||
|
}
|