all repos — nixfiles @ 05dd85210e465caa44ef7254f2781b2d12ba2882

System and user configuration, managed by nix and home-manager

Reformat files with alejandra

Alan Pearce
commit

05dd85210e465caa44ef7254f2781b2d12ba2882

parent

472dbbdbb246cf3d8ce3a5c3c6cefaa07b7589df

1 file changed, 12 insertions(+), 9 deletions(-)

changed files
M system/modules/nextdns.nixsystem/modules/nextdns.nix
@@ -1,13 +1,18 @@
-{ config, lib, pkgs, ... }: - -with lib; - -let +{ + config, + lib, + pkgs, + ... +}: +with lib; let inherit (pkgs) stdenv; cfg = config.networking.nextdns; - identifyingPrefix = if cfg.identifyDevice then "${config.networking.hostName}-" else ""; + identifyingPrefix = + if cfg.identifyDevice + then "${config.networking.hostName}-" + else ""; kresdConfig = { enable = true;
@@ -31,8 +36,7 @@ {'2a07:a8c1::', hostname='${identifyingPrefix}${cfg.configID}.dns2.nextdns.io'}
}))) ''; }; -in -{ +in { options = { networking.nextdns.enable = mkOption { type = types.bool;
@@ -55,7 +59,6 @@ };
}; config = mkIf cfg.enable { - assertions = [ { assertion = !(stdenv.isDarwin);