1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 10:37:44 +00:00

chore: migrate cube host

This commit is contained in:
RGBCube 2025-02-23 14:26:08 +03:00
parent dad68acf68
commit f2ab446c48
45 changed files with 904 additions and 88 deletions

View file

@ -3,14 +3,12 @@
inherit (lib) optionals;
in {
networking.interfaces.${interface} = {
ipv4.addresses = optionals (config.networking.ipv4 != null) [{
address = config.networking.ipv4;
prefixLength = 22;
ipv4.addresses = optionals (config.networking.ipv4.address != null) [{
inherit (config.networking.ipv4) address prefixLength;
}];
ipv6.addresses = optionals (config.networking.ipv4 != null) [{
address = config.networking.ipv6;
prefixLength = 64;
ipv6.addresses = optionals (config.networking.ipv4.address != null) [{
inherit (config.networking.ipv6) address prefixLength;
}];
};
}