From d60fad55452019341f3179824714226a753fbd88 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Thu, 13 Jun 2024 10:33:09 +0200 Subject: [PATCH] Flatten inputs --- flake.nix | 68 ++++++++++++++++++++----------------------------------- 1 file changed, 24 insertions(+), 44 deletions(-) diff --git a/flake.nix b/flake.nix index b1bdcc5..0fa2c4c 100644 --- a/flake.nix +++ b/flake.nix @@ -1,56 +1,36 @@ { inputs = { + disko.inputs.nixpkgs.follows = "nixpkgs"; + disko.url = "github:nix-community/disko"; + flake-utils.url = "github:numtide/flake-utils"; + + gomod2nix.inputs.flake-utils.follows = "flake-utils"; + gomod2nix.inputs.nixpkgs.follows = "nixpkgs"; + gomod2nix.url = "github:nix-community/gomod2nix"; + + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + home-manager.url = "github:nix-community/home-manager/release-24.05"; + + krops.inputs.flake-utils.follows = "flake-utils"; + krops.inputs.nixpkgs.follows = "nixpkgs"; + krops.url = "github:Mic92/krops"; + + nix-pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs"; + nix-pre-commit-hooks.url = "github:cachix/git-hooks.nix/master"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + nixpkgsMaster.url = "github:NixOS/nixpkgs/master"; nur.url = "github:nix-community/NUR"; - home-manager = { - url = "github:nix-community/home-manager/release-24.05"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + poetry2nix.inputs.flake-utils.follows = "flake-utils"; + poetry2nix.inputs.nixpkgs.follows = "nixpkgs"; + poetry2nix.url = "github:nix-community/poetry2nix"; - nix-pre-commit-hooks = { - url = "github:cachix/git-hooks.nix/master"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - sops-nix = { - url = "github:Mic92/sops-nix"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - krops = { - url = "github:Mic92/krops"; - inputs = { - flake-utils.follows = "flake-utils"; - nixpkgs.follows = "nixpkgs"; - }; - }; - - disko = { - url = "github:nix-community/disko"; - inputs = { - nixpkgs.follows = "nixpkgs"; - }; - }; - - gomod2nix = { - url = "github:nix-community/gomod2nix"; - inputs = { - flake-utils.follows = "flake-utils"; - nixpkgs.follows = "nixpkgs"; - }; - }; - - poetry2nix = { - url = "github:nix-community/poetry2nix"; - inputs = { - flake-utils.follows = "flake-utils"; - nixpkgs.follows = "nixpkgs"; - }; - }; + sops-nix.inputs.nixpkgs.follows = "nixpkgs"; + sops-nix.url = "github:Mic92/sops-nix"; }; outputs = { self