diff options
author | Soispha <soispha@vhack.eu> | 2023-04-16 15:06:04 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:30:54 +0200 |
commit | 0f1e66c141c844b088e24a6b339ac5dee5233835 (patch) | |
tree | e773aa3ec2fbed470263cf35e1603c85c9b841e5 /flake.nix | |
parent | Feat(hm/conf/direnv): Enable (diff) | |
download | nixos-config-0f1e66c141c844b088e24a6b339ac5dee5233835.tar.gz nixos-config-0f1e66c141c844b088e24a6b339ac5dee5233835.zip |
Fix(flake): Deduplicate inputs
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 80 |
1 files changed, 72 insertions, 8 deletions
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 = { |