feat: intro vm-simple-network profile

This commit is contained in:
Luj 2024-08-14 22:13:13 +02:00
parent ce1a607c10
commit b8db804e38
Signed by: luj
GPG key ID: 6FC74C847011FD83
4 changed files with 27 additions and 13 deletions

View file

@ -1,4 +1,9 @@
{ pkgs, inputs, ... }:
{
pkgs,
inputs,
profiles,
...
}:
{
imports = [
./hardware.nix
@ -10,6 +15,7 @@
arch = "x86_64-linux";
nixpkgs_version = inputs.nixpkgs;
hm_version = inputs.home-manager;
profiles = with profiles; [ vm-simple-network ];
ips = {
public.ipv4 = "82.67.34.230";
local.ipv4 = "192.168.0.90";
@ -27,16 +33,6 @@
disko = import ./disko.nix;
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
matchConfig.Name = "ens18";
networkConfig = {
DHCP = "ipv4";
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45/128";
};
linkConfig.RequiredForOnline = "routable";
};
systemd.network.netdevs = {
"20-wg0" = {
netdevConfig = {