From 04a524e083990321011e959132755d462263c688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 2 Oct 2023 00:05:57 +0300 Subject: [PATCH] pre-commit-hooks: explicit gitignore --- flake.lock | 12 +++++++----- flake.nix | 9 ++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index 791e907..2b3bd7f 100644 --- a/flake.lock +++ b/flake.lock @@ -87,16 +87,15 @@ "gitignore": { "inputs": { "nixpkgs": [ - "pre-commit-hooks", "nixpkgs" ] }, "locked": { - "lastModified": 1660459072, - "narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", + "lastModified": 1694102001, + "narHash": "sha256-vky6VPK1n1od6vXbqzOXnekrQpTL4hbPAwUhT5J9c9E=", "owner": "hercules-ci", "repo": "gitignore.nix", - "rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", + "rev": "9e21c80adf67ebcb077d75bd5e7d724d21eeafd6", "type": "github" }, "original": { @@ -201,7 +200,9 @@ "flake-utils": [ "flake-utils" ], - "gitignore": "gitignore", + "gitignore": [ + "gitignore" + ], "nixpkgs": [ "nixpkgs" ], @@ -229,6 +230,7 @@ "deploy-rs": "deploy-rs", "flake-compat": "flake-compat", "flake-utils": "flake-utils", + "gitignore": "gitignore", "home-manager": "home-manager", "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", diff --git a/flake.nix b/flake.nix index 9040088..6240d30 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,7 @@ flake-utils.url = "github:numtide/flake-utils"; flake-compat.url = "github:nix-community/flake-compat"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + nur.url = "github:nix-community/NUR"; home-manager.url = "github:nix-community/home-manager/release-23.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; @@ -23,13 +24,15 @@ nix-index-database.url = "github:Mic92/nix-index-database"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; + gitignore.url = "github:hercules-ci/gitignore.nix"; + gitignore.inputs.nixpkgs.follows = "nixpkgs"; + pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs"; pre-commit-hooks.inputs.nixpkgs-stable.follows = "nixpkgs"; - pre-commit-hooks.inputs.flake-utils.follows = "flake-utils"; pre-commit-hooks.inputs.flake-compat.follows = "flake-compat"; - - nur.url = "github:nix-community/NUR"; + pre-commit-hooks.inputs.flake-utils.follows = "flake-utils"; + pre-commit-hooks.inputs.gitignore.follows = "gitignore"; }; nixConfig = {