mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
fix: dont use types.cidr* on host cidr because it zeroes the last part
This commit is contained in:
parent
7b9f5254c8
commit
461f651e26
2 changed files with 5 additions and 5 deletions
|
@ -110,7 +110,7 @@
|
|||
# Provide a DNS resolver
|
||||
ipv6SendRAConfig = {
|
||||
EmitDNS = true;
|
||||
DNS = globals.net.home-lan.hosts.ward-adguardhome.ipv4;
|
||||
DNS = globals.net.home-lan.hosts.ward-adguardhome.ipv6;
|
||||
};
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ in {
|
|||
};
|
||||
|
||||
ipv4 = mkOption {
|
||||
type = types.net.ipv4;
|
||||
type = types.nullOr types.net.ipv4;
|
||||
description = "The IPv4 of this host";
|
||||
readOnly = true;
|
||||
default =
|
||||
|
@ -48,7 +48,7 @@ in {
|
|||
};
|
||||
|
||||
ipv6 = mkOption {
|
||||
type = types.net.ipv6;
|
||||
type = types.nullOr types.net.ipv6;
|
||||
description = "The IPv6 of this host";
|
||||
readOnly = true;
|
||||
default =
|
||||
|
@ -58,7 +58,7 @@ in {
|
|||
};
|
||||
|
||||
cidrv4 = mkOption {
|
||||
type = types.net.cidrv4;
|
||||
type = types.nullOr types.str; # FIXME: this is not types.net.cidr because it would zero out the host part
|
||||
description = "The IPv4 of this host including CIDR mask";
|
||||
readOnly = true;
|
||||
default =
|
||||
|
@ -68,7 +68,7 @@ in {
|
|||
};
|
||||
|
||||
cidrv6 = mkOption {
|
||||
type = types.net.cidrv6;
|
||||
type = types.nullOr types.str; # FIXME: this is not types.net.cidr because it would zero out the host part
|
||||
description = "The IPv6 of this host including CIDR mask";
|
||||
readOnly = true;
|
||||
default =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue