Skip to content

Commit

Permalink
refactor(darwin): using pipe operator in dnscrypt-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Oct 17, 2024
1 parent 693d104 commit 4562556
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
];
};

nixConfig.extra-experimental-features = [ "pipe-operators" ];
inputs = {
# utilities for Flake
flake-parts.url = "github:hercules-ci/flake-parts";
Expand Down
7 changes: 1 addition & 6 deletions nix/nixosModules/darwin/network.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
pkgs,
config,
lib,
...
}:

Expand All @@ -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)
];
};

Expand Down
1 change: 1 addition & 0 deletions nix/overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
];

flake.overlays.default = final: prev: {

sf-mono-liga-bin = prev.stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sf-mono-liga-bin";
version = "7723040ef50633da5094f01f93b96dae5e9b9299";
Expand Down

0 comments on commit 4562556

Please sign in to comment.