Reformat files with alejandra
1 file changed, 12 insertions(+), 9 deletions(-)
changed files
M system/modules/nextdns.nix → system/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);