From 92091a4cd362e0823655ad813685d50aecd5ee23 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 4 Dec 2023 22:10:57 +0530 Subject: modules/iwd: format using nixpkgs-fmt --- modules/iwd.nix | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'modules') diff --git a/modules/iwd.nix b/modules/iwd.nix index 0c1c94a..23b740a 100644 --- a/modules/iwd.nix +++ b/modules/iwd.nix @@ -74,19 +74,22 @@ in restartTriggers = [ configFile ]; }; }) - (let - needResolv = cfg.enable - && lib.hasAttrByPath [ "Network" "NameResolvingService" ] cfg.settings - && cfg.settings.Network.NameResolvingService == "resolvconf"; - in - mkIf needResolv { - environment.systemPackages = [ pkgs.openresolv ]; - systemd.services.iwd = { - path = [ pkgs.openresolv ]; - serviceConfig.ReadWritePaths = "/etc/resolv.conf"; - }; - }) + ( + let + needResolv = cfg.enable + && lib.hasAttrByPath [ "Network" "NameResolvingService" ] cfg.settings + && cfg.settings.Network.NameResolvingService == "resolvconf"; + in + mkIf needResolv { + environment.systemPackages = [ pkgs.openresolv ]; + + systemd.services.iwd = { + path = [ pkgs.openresolv ]; + serviceConfig.ReadWritePaths = "/etc/resolv.conf"; + }; + } + ) ]; meta.maintainers = with lib.maintainers; [ dtzWill ]; -- cgit v1.2.3