From 5f98d2c3b9f43458d3d90312f00b944739ea7ccb Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 28 Feb 2025 19:13:31 +0300 Subject: [PATCH] chore: formatting --- hosts/best/grafana/prometheus.nix | 4 ++-- modules/common/agenix.nix | 2 +- modules/common/nix.nix | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/best/grafana/prometheus.nix b/hosts/best/grafana/prometheus.nix index 1d199ef..4c1ed50 100644 --- a/hosts/best/grafana/prometheus.nix +++ b/hosts/best/grafana/prometheus.nix @@ -38,7 +38,7 @@ in { }); in self.nixosConfigurations - |> mapAttrsToList configToScrapeConfig - |> flatten; + |> mapAttrsToList configToScrapeConfig + |> flatten; }; } diff --git a/modules/common/agenix.nix b/modules/common/agenix.nix index 160e50c..bd16eee 100644 --- a/modules/common/agenix.nix +++ b/modules/common/agenix.nix @@ -7,7 +7,7 @@ in { (if config.isLinux then "/root/.ssh/id" else - "/Users/${config.users.users |> attrNames |> head}/.ssh/id") + "/Users/${head <| attrNames <| config.users.users}/.ssh/id") ]; environment = mkIf config.isDesktop { diff --git a/modules/common/nix.nix b/modules/common/nix.nix index a05384d..f5f4dda 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -35,8 +35,8 @@ in { }; nix.nixPath = registryMap - |> mapAttrsToList (name: value: "${name}=${value}") - |> (if config.isDarwin then concatStringsSep ":" else id); + |> mapAttrsToList (name: value: "${name}=${value}") + |> (if config.isDarwin then concatStringsSep ":" else id); nix.registry = registryMap // { default = inputs.nixpkgs; } |> mapAttrs (_: flake: { inherit flake; });