feat(jeeves)!: add config
Automatic disk partitioning using `disko` Automatic secrets management using `agenix` Automatic deployment using `deploy-rs`
This commit is contained in:
parent
64950f00f3
commit
8f17e5849a
12 changed files with 869 additions and 55 deletions
47
machines/nixos/x86_64-linux/jeeves/network.nix
Normal file
47
machines/nixos/x86_64-linux/jeeves/network.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
|
||||
# Networking
|
||||
age.secrets."home/wifi.env".file = ../../../../secrets/home/wifi.env.age;
|
||||
networking.wireless = {
|
||||
iwd.enable = true;
|
||||
environmentFile = config.age.secrets."home/wifi.env".path;
|
||||
networks = {
|
||||
home = {
|
||||
ssid = "@HOME_WIFI_SSID@";
|
||||
psk = "@HOME_WIFI_PSK@";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
wait-online = {
|
||||
enable = false;
|
||||
anyInterface = true;
|
||||
ignoredInterfaces = [
|
||||
"eth0"
|
||||
];
|
||||
};
|
||||
|
||||
networks."10-eth0" = {
|
||||
matchConfig.Name = "eth0";
|
||||
networkConfig.DHCP = "yes";
|
||||
};
|
||||
links."10-eth0" = {
|
||||
matchConfig.PermanentMACAddress = "04:7c:16:80:3c:2c";
|
||||
linkConfig.Name = "eth0"; # "enp8s0";
|
||||
};
|
||||
|
||||
networks."15-wan0" = {
|
||||
matchConfig.Name = "wan0";
|
||||
networkConfig.DHCP = "yes";
|
||||
};
|
||||
links."15-wan0" = {
|
||||
matchConfig.PermanentMACAddress = "bc:f4:d4:40:5c:ed";
|
||||
linkConfig.Name = "wan0"; # "wlp15s0";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue