From 88436c791a7946cae1bf109f7a25085858f2d63b Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Fri, 29 Nov 2024 15:03:18 +0100 Subject: [PATCH] flake: add walker + binary caches --- flake.lock | 173 ++++++++--------------------------------- flake.nix | 9 ++- system/nix/default.nix | 2 + 3 files changed, 41 insertions(+), 143 deletions(-) diff --git a/flake.lock b/flake.lock index 408abfe..2751e8c 100644 --- a/flake.lock +++ b/flake.lock @@ -277,6 +277,27 @@ "type": "github" } }, + "flake-parts_5": { + "inputs": { + "nixpkgs-lib": [ + "walker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1719994518, + "narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-utils": { "locked": { "lastModified": 1629284811, @@ -328,41 +349,6 @@ "type": "github" } }, - "flake-utils_4": { - "inputs": { - "systems": "systems_8" - }, - "locked": { - "lastModified": 1726560853, - "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "freetype2": { - "flake": false, - "locked": { - "lastModified": 1687587065, - "narHash": "sha256-+Fh+/k+NWL5Ow9sDLtp8Cv/8rLNA1oByQQCIQS/bysY=", - "owner": "wez", - "repo": "freetype2", - "rev": "e4586d960f339cf75e2e0b34aee30a0ed8353c0d", - "type": "github" - }, - "original": { - "owner": "wez", - "repo": "freetype2", - "rev": "e4586d960f339cf75e2e0b34aee30a0ed8353c0d", - "type": "github" - } - }, "gitignore": { "inputs": { "nixpkgs": [ @@ -385,23 +371,6 @@ "type": "github" } }, - "harfbuzz": { - "flake": false, - "locked": { - "lastModified": 1711722720, - "narHash": "sha256-GdxcAPx5QyniSHPAN1ih28AD9JLUPR0ItqW9JEsl3pU=", - "owner": "harfbuzz", - "repo": "harfbuzz", - "rev": "63973005bc07aba599b47fdd4cf788647b601ccd", - "type": "github" - }, - "original": { - "owner": "harfbuzz", - "ref": "8.4.0", - "repo": "harfbuzz", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [ @@ -470,23 +439,6 @@ "type": "github" } }, - "libpng": { - "flake": false, - "locked": { - "lastModified": 1549245649, - "narHash": "sha256-1+cRp0Ungme/OGfc9kGJbklYIWAFxk8Il1M+NV4KSgw=", - "owner": "glennrp", - "repo": "libpng", - "rev": "8439534daa1d3a5705ba92e653eda9251246dd61", - "type": "github" - }, - "original": { - "owner": "glennrp", - "repo": "libpng", - "rev": "8439534daa1d3a5705ba92e653eda9251246dd61", - "type": "github" - } - }, "mnw": { "locked": { "lastModified": 1726188505, @@ -2731,7 +2683,7 @@ "portfolio": "portfolio", "systems": "systems_7", "treefmt-nix": "treefmt-nix", - "wezterm": "wezterm" + "walker": "walker" } }, "rust-overlay": { @@ -2788,27 +2740,6 @@ "type": "github" } }, - "rust-overlay_3": { - "inputs": { - "nixpkgs": [ - "wezterm", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1729477859, - "narHash": "sha256-r0VyeJxy4O4CgTB/PNtfQft9fPfN1VuGvnZiCxDArvg=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "ada8266712449c4c0e6ee6fcbc442b3c217c79e1", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" - } - }, "sam-zola": { "flake": false, "locked": { @@ -2930,21 +2861,6 @@ "type": "github" } }, - "systems_8": { - "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": "nixpkgs_8" @@ -2996,32 +2912,24 @@ "type": "github" } }, - "wezterm": { + "walker": { "inputs": { - "flake-utils": "flake-utils_4", - "freetype2": "freetype2", - "harfbuzz": "harfbuzz", - "libpng": "libpng", + "flake-parts": "flake-parts_5", "nixpkgs": [ "nixpkgs" - ], - "rust-overlay": "rust-overlay_3", - "zlib": "zlib" + ] }, "locked": { - "dir": "nix", - "lastModified": 1732036472, - "narHash": "sha256-8lv1bc7Lw5S7UFOduShwSHfBzB4Vl0ex22Cb+q/qLi0=", - "owner": "wez", - "repo": "wezterm", - "rev": "4050072da21cc3106d0985281d75978c07e22abc", + "lastModified": 1732816234, + "narHash": "sha256-fQgzlRyLH6T5JrPQTyfBqjiQzHzSj7B2Eg08rogxs50=", + "owner": "abenz1267", + "repo": "walker", + "rev": "de49f0b8c93d7df373463dc65dba1d90770e02f2", "type": "github" }, "original": { - "dir": "nix", - "owner": "wez", - "ref": "main", - "repo": "wezterm", + "owner": "abenz1267", + "repo": "walker", "type": "github" } }, @@ -3057,23 +2965,6 @@ "repo": "xwayland-satellite", "type": "github" } - }, - "zlib": { - "flake": false, - "locked": { - "lastModified": 1484501380, - "narHash": "sha256-j5b6aki1ztrzfCqu8y729sPar8GpyQWIrajdzpJC+ww=", - "owner": "madler", - "repo": "zlib", - "rev": "cacf7f1d4e3d44d871b605da3b647f07d718623f", - "type": "github" - }, - "original": { - "owner": "madler", - "ref": "v1.2.11", - "repo": "zlib", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 72a1089..48b1137 100644 --- a/flake.nix +++ b/flake.nix @@ -74,9 +74,14 @@ inputs.home-manager.follows = "home-manager"; }; treefmt-nix.url = "github:numtide/treefmt-nix"; - wezterm = { - url = "github:wez/wezterm/main?dir=nix"; + walker = { + url = "github:abenz1267/walker"; inputs.nixpkgs.follows = "nixpkgs"; }; }; + + nixConfig = { + extra-substituters = ["https://walker.cachix.org" "https://walker-git.cachix.org"]; + extra-trusted-public-keys = ["walker.cachix.org-1:fG8q+uAaMqhsMxWjwvk0IMb4mFPFLqHjuvfwQxE4oJM=" "walker-git.cachix.org-1:vmC0ocfPWh0S/vRAQGtChuiZBTAe4wiKDeyyXM0/7pM="]; + }; } diff --git a/system/nix/default.nix b/system/nix/default.nix index 3684f91..f1d782f 100644 --- a/system/nix/default.nix +++ b/system/nix/default.nix @@ -4,6 +4,8 @@ nix = { package = pkgs.lix; settings = { + accept-flake-config = true; + warn-dirty = false; auto-optimise-store = true; experimental-features = [ "nix-command"