From 05dd85210e465caa44ef7254f2781b2d12ba2882 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 16 Oct 2022 23:49:18 +0200 Subject: Reformat files with alejandra --- system/modules/nextdns.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'system/modules/nextdns.nix') diff --git a/system/modules/nextdns.nix b/system/modules/nextdns.nix index b6e33728..0c718d57 100644 --- a/system/modules/nextdns.nix +++ b/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 @@ let }))) ''; }; -in -{ +in { options = { networking.nextdns.enable = mkOption { type = types.bool; @@ -55,7 +59,6 @@ in }; config = mkIf cfg.enable { - assertions = [ { assertion = !(stdenv.isDarwin); -- cgit 1.4.1