🐛 fix deprecation errors

nixos
Moritz Böhme 2022-02-07 15:29:45 +01:00
parent e3b2846aa0
commit 8554b1b733
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
3 changed files with 8 additions and 10 deletions

View File

@ -9,7 +9,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
stable.url = "github:nixos/nixpkgs/nixos-21.11";
nur.url = "github:nix-community/NUR";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus/1.3.0";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
agenix.url = "github:ryantm/agenix";
emacs-overlay.url = "github:nix-community/emacs-overlay";

View File

@ -5,9 +5,9 @@ let
folder = ./cachix;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
in
{
imports = lib.mapAttrsToList toImport
(lib.filterAttrs filterCaches (builtins.readDir folder));
in {
inherit imports;
nix.binaryCaches = [ "https://cache.nixos.org/" ];
nix.settings.substituters = [ "https://cache.nixos.org/" ];
}

View File

@ -1,9 +1,7 @@
{
nix = {
binaryCaches = [
"https://nix-community.cachix.org"
];
binaryCachePublicKeys = [
nix.settings = {
substituters = [ "https://nix-community.cachix.org" ];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};