summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-12-04 22:10:57 +0530
committersinanmohd <sinan@sinanmohd.com>2023-12-04 22:10:57 +0530
commit92091a4cd362e0823655ad813685d50aecd5ee23 (patch)
treee13cf71449a9d8318f04619193b77682b5066afe
parent94be366d8d5f5b0270920c5b903ed30dc3fd31f6 (diff)
modules/iwd: format using nixpkgs-fmt
-rw-r--r--modules/iwd.nix27
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 ];