Skip to content

Commit

Permalink
add shim
Browse files Browse the repository at this point in the history
  • Loading branch information
Svenum committed Oct 27, 2024
1 parent cf56ef6 commit aa690dc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion systems/aarch64-linux/srv-raspi5/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{ pkgs, ... }:

let
ip = "172.16.0.13";
in
{
imports = [ ./hardware.nix ];

Expand Down Expand Up @@ -32,11 +35,19 @@
};

networking = {
macvlans.shim-end0 = {
interface = "end0";
mode = "bridge";
};
interfaces = {
end0.ipv4.addresses = [{
address = "172.16.0.13";
address = ip;
prefixLength = 24;
}];
shim-end0.ipv4.addresses = [{
address = ip;
prefixLength = 32;
}];
};
defaultGateway = "172.16.0.1";
nameservers = [ "172.16.0.3" "172.16.0.4" ];
Expand Down

0 comments on commit aa690dc

Please sign in to comment.