From 038fa76411cc04054dce8bab68a7ad71bfa5cf8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikodem=20Rabuli=C5=84ski?= Date: Wed, 15 Jan 2025 21:45:05 +0100 Subject: [PATCH] flake: remove dependency on hercules, add dependency on treefmt-nix --- flake.lock | 95 +++++++++++++++++------------------------------------- flake.nix | 10 +++--- 2 files changed, 35 insertions(+), 70 deletions(-) diff --git a/flake.lock b/flake.lock index 5e155bb..d3c5a8c 100644 --- a/flake.lock +++ b/flake.lock @@ -279,26 +279,6 @@ } }, "flake-parts_3": { - "inputs": { - "nixpkgs-lib": [ - "hercules-ci-effects", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1736143030, - "narHash": "sha256-+hu54pAoLDEZT9pjHlqL9DNzWz0NbUn8NEAHP7PQPzU=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "b905f6fc23a9051a6e1b741e1438dbfc0634c6de", - "type": "github" - }, - "original": { - "id": "flake-parts", - "type": "indirect" - } - }, - "flake-parts_4": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" }, @@ -429,25 +409,6 @@ "type": "github" } }, - "hercules-ci-effects": { - "inputs": { - "flake-parts": "flake-parts_3", - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1736917206, - "narHash": "sha256-JTBWmyGf8K1Rwb+gviHIUzRJk/sITtT+72HXFkTZUjo=", - "owner": "hercules-ci", - "repo": "hercules-ci-effects", - "rev": "afd0a42e8c61ebb56899315ee4084a8b2e4ff425", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "hercules-ci-effects", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [ @@ -534,8 +495,8 @@ }, "niko-nur": { "inputs": { - "flake-parts": "flake-parts_4", - "nixpkgs": "nixpkgs_2" + "flake-parts": "flake-parts_3", + "nixpkgs": "nixpkgs" }, "locked": { "lastModified": 1723663703, @@ -589,16 +550,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1736798957, - "narHash": "sha256-qwpCtZhSsSNQtK4xYGzMiyEDhkNzOCz/Vfu4oL2ETsQ=", - "owner": "NixOS", + "lastModified": 1723603349, + "narHash": "sha256-VMg6N7MryOuvSJ8Sj6YydarnUCkL7cvMdrMcnsJnJCE=", + "owner": "nixos", "repo": "nixpkgs", - "rev": "9abb87b552b7f55ac8916b6fc9e5cb486656a2f3", + "rev": "daf7bb95821b789db24fc1ac21f613db0c1bf2cb", "type": "github" }, "original": { - "owner": "NixOS", - "ref": "nixos-unstable", + "owner": "nixos", + "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } @@ -647,22 +608,6 @@ } }, "nixpkgs_2": { - "locked": { - "lastModified": 1723603349, - "narHash": "sha256-VMg6N7MryOuvSJ8Sj6YydarnUCkL7cvMdrMcnsJnJCE=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "daf7bb95821b789db24fc1ac21f613db0c1bf2cb", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_3": { "locked": { "lastModified": 1736881310, "narHash": "sha256-5BlVeikKoJVrUXBdr1kSrcRQ8o20Kl+ZU2pEzpE5sUw=", @@ -748,15 +693,15 @@ "firefox-darwin": "firefox-darwin", "flake-parts": "flake-parts_2", "helix": "helix", - "hercules-ci-effects": "hercules-ci-effects", "home-manager": "home-manager", "lix": "lix", "lix-module": "lix-module", "mailserver": "mailserver", "niko-nur": "niko-nur", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_2", "nvidia-patch": "nvidia-patch", "racket": "racket", + "treefmt": "treefmt", "wrapper-manager": "wrapper-manager", "wrapper-manager-hm-compat": "wrapper-manager-hm-compat", "zjstatus": "zjstatus" @@ -899,6 +844,26 @@ "type": "github" } }, + "treefmt": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1736154270, + "narHash": "sha256-p2r8xhQZ3TYIEKBoiEhllKWQqWNJNoT9v64Vmg4q8Zw=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "13c913f5deb3a5c08bb810efd89dc8cb24dd968b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, "wrapper-manager": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index f139495..891c36e 100644 --- a/flake.nix +++ b/flake.nix @@ -9,13 +9,12 @@ ]; imports = [ - inputs.hercules-ci-effects.flakeModule + inputs.treefmt.flakeModule ./assets ./hosts ./modules ./wrappers - ./effects.nix ./pkgs ]; @@ -100,9 +99,6 @@ url = "github:nrabulinski/racket.nix"; inputs.nixpkgs.follows = "nixpkgs"; }; - hercules-ci-effects = { - url = "github:hercules-ci/hercules-ci-effects"; - }; conduit-src = { url = "gitlab:famedly/conduit?ref=next"; flake = false; @@ -151,6 +147,10 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.lix.follows = "lix"; }; + treefmt = { + url = "github:numtide/treefmt-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; /*