From 07e7a34e5d9ab4092f9529cdbf60159a5cbdcd0d Mon Sep 17 00:00:00 2001 From: r17x Date: Thu, 17 Oct 2024 20:45:08 +0700 Subject: [PATCH] refactor(darwin): using pipe operator in dnscrypt-proxy --- nix/nix.nix | 1 + nix/nixosModules/darwin/network.nix | 7 +------ nix/overlays/default.nix | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/nix/nix.nix b/nix/nix.nix index f21452d..03b420a 100644 --- a/nix/nix.nix +++ b/nix/nix.nix @@ -33,6 +33,7 @@ in max-jobs = "auto"; experimental-features = [ + "pipe-operators" "auto-allocate-uids" "ca-derivations" "flakes" diff --git a/nix/nixosModules/darwin/network.nix b/nix/nixosModules/darwin/network.nix index 96b0b90..5889b48 100644 --- a/nix/nixosModules/darwin/network.nix +++ b/nix/nixosModules/darwin/network.nix @@ -1,7 +1,6 @@ { pkgs, config, - lib, ... }: @@ -21,11 +20,7 @@ serviceConfig.ProgramArguments = [ "${pkgs.dnscrypt-proxy2}/bin/dnscrypt-proxy" "-config" - (lib.trivial.pipe ./dnscrypt-proxy.toml [ - builtins.readFile - (pkgs.writeText "dnscrypt-proxy.toml") - toString - ]) + (builtins.readFile ./dnscrypt-proxy.toml |> pkgs.writeText "dnscrypt-proxy.toml" |> toString) ]; }; diff --git a/nix/overlays/default.nix b/nix/overlays/default.nix index bc163f6..28b6f8f 100644 --- a/nix/overlays/default.nix +++ b/nix/overlays/default.nix @@ -8,6 +8,7 @@ ]; flake.overlays.default = final: prev: { + sf-mono-liga-bin = prev.stdenvNoCC.mkDerivation (finalAttrs: { pname = "sf-mono-liga-bin"; version = "7723040ef50633da5094f01f93b96dae5e9b9299";