[fix] flake.nix: deduplicate inputs

This commit is contained in:
Jalil David Salamé Messina 2024-05-17 18:20:21 +02:00
parent 142d5e4847
commit 15a60141ad
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 55 additions and 102 deletions

View file

@ -136,9 +136,10 @@
},
"devshell": {
"inputs": {
"flake-utils": "flake-utils_2",
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixvim",
"nixpkgs"
]
},
@ -157,22 +158,6 @@
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1673956053,
@ -226,43 +211,9 @@
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": {
"inputs": {
"systems": "systems_3"
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1710146030,
@ -312,7 +263,6 @@
"gitignore": {
"inputs": {
"nixpkgs": [
"nixvim",
"pre-commit-hooks",
"nixpkgs"
]
@ -404,7 +354,9 @@
},
"lix-module": {
"inputs": {
"flake-utils": "flake-utils",
"flake-utils": [
"flake-utils"
],
"flakey-profile": "flakey-profile",
"lix": [
"lix"
@ -428,7 +380,6 @@
"neovim-flake": {
"inputs": {
"flake-utils": [
"lix-module",
"flake-utils"
],
"nixpkgs": [
@ -484,7 +435,9 @@
},
"nixvim": {
"inputs": {
"devshell": "devshell",
"devshell": [
"devshell"
],
"flake-compat": [
"stylix",
"flake-compat"
@ -498,7 +451,9 @@
"nixpkgs": [
"nixpkgs"
],
"pre-commit-hooks": "pre-commit-hooks",
"pre-commit-hooks": [
"pre-commit-hooks"
],
"treefmt-nix": "treefmt-nix"
},
"locked": {
@ -517,24 +472,24 @@
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils_3",
"flake-compat": [
"stylix",
"flake-compat"
],
"gitignore": "gitignore",
"nixpkgs": [
"nixvim",
"nixpkgs"
],
"nixpkgs-stable": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1715609711,
"narHash": "sha256-/5u29K0c+4jyQ8x7dUIEUWlz2BoTSZWUP2quPwFCE7M=",
"lastModified": 1715870890,
"narHash": "sha256-nacSOeXtUEM77Gn0G4bTdEOeFIrkCBXiyyFZtdGwuH0=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "c182c876690380f8d3b9557c4609472ebfa1b141",
"rev": "fa606cccd7b0ccebe2880051208e4a0f61bfc8c1",
"type": "github"
},
"original": {
@ -546,6 +501,8 @@
"root": {
"inputs": {
"audiomenu": "audiomenu",
"devshell": "devshell",
"flake-utils": "flake-utils",
"home-manager": "home-manager",
"jpassmenu": "jpassmenu",
"lix": "lix",
@ -554,7 +511,9 @@
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim",
"stylix": "stylix"
"pre-commit-hooks": "pre-commit-hooks",
"stylix": "stylix",
"systems": "systems"
}
},
"stylix": {
@ -566,7 +525,7 @@
"base16-kitty": "base16-kitty",
"base16-tmux": "base16-tmux",
"base16-vim": "base16-vim",
"flake-compat": "flake-compat_2",
"flake-compat": "flake-compat",
"gnome-shell": "gnome-shell",
"home-manager": [
"home-manager"
@ -605,36 +564,6 @@
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [

View file

@ -18,7 +18,7 @@
url = "github:neovim/neovim?dir=contrib&ref=v0.10.0";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "lix-module/flake-utils";
flake-utils.follows = "flake-utils";
};
};
# Lix
@ -31,6 +31,7 @@
inputs = {
lix.follows = "lix";
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
# Modules
@ -50,9 +51,31 @@
url = "github:nix-community/nixvim";
inputs = {
nixpkgs.follows = "nixpkgs";
devshell.follows = "devshell";
nix-darwin.follows = ""; # disable MacOS stuff
home-manager.follows = "home-manager";
# disable MacOS stuff
nix-darwin.follows = "";
flake-compat.follows = "stylix/flake-compat";
pre-commit-hooks.follows = "pre-commit-hooks";
};
};
# For deduplication
systems.url = "github:nix-systems/default";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
devshell = {
url = "github:numtide/devshell";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
nixpkgs-stable.follows = "nixpkgs";
flake-compat.follows = "stylix/flake-compat";
};
};
@ -71,6 +94,7 @@
neovim-flake,
lix,
lix-module,
...
}: let
inherit (nixpkgs) lib;
# Helpers for producing system-specific outputs