1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 18:17:44 +00:00

chore: migrate disk host

This commit is contained in:
RGBCube 2025-02-22 22:00:52 +03:00
parent ba5c91ceae
commit 08061fb6e2
21 changed files with 194 additions and 60 deletions

16
modules/linux/ip.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, lib, ... }: let
inherit (config.networking.defaultGateway) interface;
inherit (lib) optionals;
in {
networking.interfaces.${interface} = {
ipv4.addresses = optionals (config.networking.ipv4 != null) [{
address = config.networking.ipv4;
prefixLength = 22;
}];
ipv6.addresses = optionals (config.networking.ipv4 != null) [{
address = config.networking.ipv6;
prefixLength = 64;
}];
};
}

Binary file not shown.