diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-12-04 22:10:57 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-12-04 22:10:57 +0530 |
commit | 92091a4cd362e0823655ad813685d50aecd5ee23 (patch) | |
tree | e13cf71449a9d8318f04619193b77682b5066afe /modules | |
parent | 94be366d8d5f5b0270920c5b903ed30dc3fd31f6 (diff) |
modules/iwd: format using nixpkgs-fmt
Diffstat (limited to 'modules')
-rw-r--r-- | modules/iwd.nix | 27 |
1 files changed, 15 insertions, 12 deletions
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 ]; |