From 0b2b336560a5340529f7069a601bfa4fa3e7abb7 Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Sun, 2 Jan 2022 08:48:15 +0800 Subject: [PATCH] Add the NUR to the flake inputs I'm going to use it mostly for its extra packages (and maybe some of its modules). --- flake.lock | 16 ++++++++++++++++ flake.nix | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/flake.lock b/flake.lock index 7b3d832a..936d95ce 100644 --- a/flake.lock +++ b/flake.lock @@ -220,6 +220,21 @@ "type": "github" } }, + "nur": { + "locked": { + "lastModified": 1641066357, + "narHash": "sha256-KEbe1qYOtY2hrz8U2LBop9qceMXV1+qs4C+KqTPTj5M=", + "owner": "nix-community", + "repo": "NUR", + "rev": "a1e9882968e76de886e35bedf7e4ec905b19347b", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NUR", + "type": "github" + } + }, "root": { "inputs": { "agenix": "agenix", @@ -229,6 +244,7 @@ "home-manager": "home-manager", "neovim-nightly-overlay": "neovim-nightly-overlay", "nixpkgs": "nixpkgs_3", + "nur": "nur", "rust-overlay": "rust-overlay" } }, diff --git a/flake.nix b/flake.nix index 8fadf861..b0e343a6 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,10 @@ home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; + # This is what AUR strives to be. + nur.url = "github:nix-community/NUR"; + nur.inputs.nixpkgs.follows = "nixpkgs"; + # Managing your secrets. agenix.url = "github:ryantm/agenix"; agenix.inputs.nixpkgs.follows = "nixpkgs"; @@ -39,6 +43,9 @@ # Rust overlay for them ease of setting up Rust toolchains. inputs.rust-overlay.overlay + + # Access to NUR. + inputs.nur.overlay ]; forAllSystems = f: @@ -66,6 +73,15 @@ nixpkgs.flake = nixpkgs; home-manager.flake = home-manager; agenix.flake = inputs.agenix; + nur.flake = inputs.nur; + }; + + # Set several binary caches. + nix = { + binaryCaches = [ "https://nix-community.cachix.org" ]; + binaryCachePublicKeys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; }; # Stallman-senpai will be disappointed.