Services/avahi: rename moved option
This commit is contained in:
parent
e6fd986fc5
commit
cf34e7c222
1 changed files with 15 additions and 4 deletions
|
|
@ -1,8 +1,19 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
let
|
||||||
{
|
old = {
|
||||||
services.avahi = {
|
|
||||||
enable = true;
|
|
||||||
nssmdns = true;
|
nssmdns = true;
|
||||||
};
|
};
|
||||||
|
new = {
|
||||||
|
nssmdns4 = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
NixOS 24.05 changed the option for mnds to be able to turn on/off IPv6
|
||||||
|
23.11 doesn't support this, so I need to use the conditional to be able to
|
||||||
|
use the same config for both
|
||||||
|
*/
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
} // (if config.system.nixos.release == "23.11" then old else new);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue