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:
parent
ba5c91ceae
commit
08061fb6e2
21 changed files with 194 additions and 60 deletions
16
modules/linux/ip.nix
Normal file
16
modules/linux/ip.nix
Normal 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.
Loading…
Add table
Add a link
Reference in a new issue