From 90f5949e702f879d209cc8f0d8a7a3f043614736 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 10 Nov 2023 01:27:22 +0800 Subject: [PATCH] nixos,flakes: lib.mkAfter --- flakes/nixos/berberman.nix | 8 ++++++-- flakes/nixos/hyprland.nix | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/flakes/nixos/berberman.nix b/flakes/nixos/berberman.nix index 5bc873a..1f3af3d 100644 --- a/flakes/nixos/berberman.nix +++ b/flakes/nixos/berberman.nix @@ -1,9 +1,13 @@ -{inputs, ...}: { +{ + inputs, + lib, + ... +}: { nixpkgs.overlays = [ inputs.berberman.overlays.default ]; nix.settings = { - substituters = ["https://berberman.cachix.org"]; + substituters = lib.mkAfter ["https://berberman.cachix.org"]; trusted-public-keys = ["berberman.cachix.org-1:UHGhodNXVruGzWrwJ12B1grPK/6Qnrx2c3TjKueQPds="]; }; } diff --git a/flakes/nixos/hyprland.nix b/flakes/nixos/hyprland.nix index fa3f250..478ab2f 100644 --- a/flakes/nixos/hyprland.nix +++ b/flakes/nixos/hyprland.nix @@ -1,6 +1,6 @@ -{...}: { +{lib, ...}: { nix.settings = { - substituters = ["https://hyprland.cachix.org"]; + substituters = lib.mkAfter ["https://hyprland.cachix.org"]; trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; }; }