From 0f1e66c141c844b088e24a6b339ac5dee5233835 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 16 Apr 2023 15:06:04 +0200 Subject: Fix(flake): Deduplicate inputs --- flake.nix | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 72 insertions(+), 8 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index a4dd3142..d82b3b31 100644 --- a/flake.nix +++ b/flake.nix @@ -6,19 +6,60 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager/master"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; + }; + + # inputs for following + flake-compat = { + url = "github:edolstra/flake-compat"; + flake = false; + }; + crane = { + url = "github:ipetkov/crane"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-compat.follows = "flake-compat"; + flake-utils.follows = "flake-utils"; + rust-overlay.follows = "rust-overlay"; + }; + }; + + flake-utils = { + url = "github:numtide/flake-utils"; + inputs = { + }; + }; + + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; agenix = { url = "github:ryantm/agenix"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; }; ragenix = { url = "github:yaxitech/ragenix"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + agenix.follows = "agenix"; + flake-utils.follows = "flake-utils"; + rust-overlay.follows = "rust-overlay"; + crane.follows = "crane"; + }; }; impermanence = { url = "github:nix-community/impermanence"; + inputs = { + }; }; neovim_config = { @@ -27,15 +68,26 @@ }; templates = { url = "git+https://codeberg.org/ene/nixos-templates.git"; + inputs = { + }; }; grades = { url = "git+https://codeberg.org/ene/Grades.git"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + crane.follows = "crane"; + flake-utils.follows = "flake-utils"; + rust-overlay.follows = "rust-overlay"; + }; }; strip_js_comments = { url = "git+https://codeberg.org/ene/strip_js_comments.git"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + crane.follows = "crane"; + flake-utils.follows = "flake-utils"; + }; }; shell-library = { url = "git+https://git.sils.li/ene/lib-sh.git"; @@ -43,15 +95,27 @@ }; river_init_lesser = { url = "git+https://git.sils.li/ene/river-lesser-init.git"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + crane.follows = "crane"; + flake-utils.follows = "flake-utils"; + }; }; yambar_cpu = { url = "git+https://git.sils.li/ene/yambar_cpu.git"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + crane.follows = "crane"; + flake-utils.follows = "flake-utils"; + }; }; yambar_memory = { url = "git+https://git.sils.li/ene/yambar_memory.git"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + nixpkgs.follows = "nixpkgs"; + crane.follows = "crane"; + flake-utils.follows = "flake-utils"; + }; }; user_js = { -- cgit 1.4.1