diff --git a/flake.lock b/flake.lock index 46f08ee..040c2a6 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ ] }, "locked": { - "lastModified": 1744289235, - "narHash": "sha256-ZFkHLdimtFzQACsVVyZkZlfYdj4iNy3PkzXfrwmlse8=", + "lastModified": 1743265529, + "narHash": "sha256-QbjP15/2N+VJl0b5jxrrTc+VOt39aU4XrDvtP0Lz5ik=", "owner": "hyprwm", "repo": "aquamarine", - "rev": "c8282f4982b56dfa5e9b9f659809da93f8d37e7a", + "rev": "1d2dbd72c2bbaceab031c592d4810f744741d203", "type": "github" }, "original": { @@ -35,11 +35,11 @@ }, "crane": { "locked": { - "lastModified": 1741481578, - "narHash": "sha256-JBTSyJFQdO3V8cgcL08VaBUByEU6P5kXbTJN6R0PFQo=", + "lastModified": 1741148495, + "narHash": "sha256-EV8KUaIZ2/CdBXlutXrHoZYbWPeB65p5kKZk71gvDRI=", "owner": "ipetkov", "repo": "crane", - "rev": "bb1c9567c43e4434f54e9481eb4b8e8e0d50f0b5", + "rev": "75390a36cd0c2cdd5f1aafd8a9f827d7107f2e53", "type": "github" }, "original": { @@ -119,11 +119,11 @@ ] }, "locked": { - "lastModified": 1741352980, - "narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=", + "lastModified": 1740872218, + "narHash": "sha256-ZaMw0pdoUKigLpv9HiNDH2Pjnosg7NBYMJlHTIsHEUo=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9", + "rev": "3876f6b87db82f33775b1ef5ea343986105db764", "type": "github" }, "original": { @@ -171,24 +171,6 @@ "type": "github" } }, - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "gitignore": { "inputs": { "nixpkgs": [ @@ -233,26 +215,6 @@ "type": "github" } }, - "helix": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" - }, - "locked": { - "lastModified": 1745302248, - "narHash": "sha256-MEEYZaOYmU2SlgzAKRFjF4vtODRx/AUG33nRJ+nKy78=", - "owner": "helix-editor", - "repo": "helix", - "rev": "0815b52e0959e21ec792ea41d508a050b552f850", - "type": "github" - }, - "original": { - "owner": "helix-editor", - "repo": "helix", - "type": "github" - } - }, "hercules-ci-effects": { "inputs": { "flake-parts": [ @@ -346,11 +308,11 @@ ] }, "locked": { - "lastModified": 1745015490, - "narHash": "sha256-apEJ9zoSzmslhJ2vOKFcXTMZLUFYzh1ghfB6Rbw3Low=", + "lastModified": 1739049071, + "narHash": "sha256-3+7TpXMrbsUXSwgr5VAKAnmkzMb6JO+Rvc9XRb5NMg4=", "owner": "hyprwm", "repo": "hyprgraphics", - "rev": "60754910946b4e2dc1377b967b7156cb989c5873", + "rev": "175c6b29b6ff82100539e7c4363a35a02c74dd73", "type": "github" }, "original": { @@ -379,11 +341,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1745593751, - "narHash": "sha256-TJ/Nijr83ydAi473NGeazYqcQ0t8lCPU7aaQv98oGg8=", + "lastModified": 1744214922, + "narHash": "sha256-136gjyhECXU5t9uFCpWsC4t50lUJnI4PJ9KZsNIaydg=", "owner": "hyprwm", "repo": "hyprland", - "rev": "742bce016cb848d222fbfcfcf8d3894ea3fdaeff", + "rev": "0dc531c4a7d6849f2db61084497b3007e92f470b", "type": "github" }, "original": { @@ -501,11 +463,11 @@ ] }, "locked": { - "lastModified": 1744468525, - "narHash": "sha256-9HySx+EtsbbKlZDlY+naqqOV679VdxP6x6fP3wxDXJk=", + "lastModified": 1741191527, + "narHash": "sha256-kM+11Nch47Xwfgtw2EpRitJuORy4miwoMuRi5tyMBDY=", "owner": "hyprwm", "repo": "hyprlang", - "rev": "f1000c54d266e6e4e9d646df0774fac5b8a652df", + "rev": "72df3861f1197e41b078faa3e38eedd60e00018d", "type": "github" }, "original": { @@ -588,14 +550,14 @@ "nixpkgs" ], "pre-commit-hooks-nix": "pre-commit-hooks-nix", - "rust-overlay": "rust-overlay_2" + "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1745271491, - "narHash": "sha256-4GAHjus6JRpYHVROMIhFIz/sgLDF/klBM3UHulbSK9s=", + "lastModified": 1741442524, + "narHash": "sha256-tVcxLDLLho8dWcO81Xj/3/ANLdVs0bGyCPyKjp70JWk=", "owner": "nix-community", "repo": "lanzaboote", - "rev": "995637eb3ab78eac33f8ee6b45cc2ecd5ede12ba", + "rev": "d8099586d9a84308ffedac07880e7f07a0180ff4", "type": "github" }, "original": { @@ -632,15 +594,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1740560979, - "narHash": "sha256-Vr3Qi346M+8CjedtbyUevIGDZW8LcA1fTG0ugPY/Hic=", - "owner": "nixos", + "lastModified": 1744932701, + "narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "5135c59491985879812717f4c9fea69604e7f26f", + "rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef", "type": "github" }, "original": { - "owner": "nixos", + "owner": "NixOS", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" @@ -659,22 +621,6 @@ } }, "nixpkgs_2": { - "locked": { - "lastModified": 1745526057, - "narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "f771eb401a46846c1aebd20552521b233dd7e18b", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_3": { "locked": { "lastModified": 1736429638, "narHash": "sha256-dDWqQqSgMQXw5eFtcyoVijv7HbYJZOIo+jWQdJtsxn4=", @@ -726,11 +672,11 @@ ] }, "locked": { - "lastModified": 1741379162, - "narHash": "sha256-srpAbmJapkaqGRE3ytf3bj4XshspVR5964OX5LfjDWc=", + "lastModified": 1740915799, + "narHash": "sha256-JvQvtaphZNmeeV+IpHgNdiNePsIpHD5U/7QN5AeY44A=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "b5a62751225b2f62ff3147d0a334055ebadcd5cc", + "rev": "42b1ba089d2034d910566bf6b40830af6b8ec732", "type": "github" }, "original": { @@ -741,37 +687,15 @@ }, "root": { "inputs": { - "helix": "helix", "hyprland": "hyprland", "impermanence": "impermanence", "lanzaboote": "lanzaboote", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "schizofox": "schizofox", - "systems": "systems_3" + "systems": "systems_2" } }, "rust-overlay": { - "inputs": { - "nixpkgs": [ - "helix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1740623427, - "narHash": "sha256-3SdPQrZoa4odlScFDUHd4CUPQ/R1gtH4Mq9u8CBiK8M=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "d342e8b5fd88421ff982f383c853f0fc78a847ab", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" - } - }, - "rust-overlay_2": { "inputs": { "nixpkgs": [ "lanzaboote", @@ -779,11 +703,11 @@ ] }, "locked": { - "lastModified": 1741573199, - "narHash": "sha256-A2sln1GdCf+uZ8yrERSCZUCqZ3JUlOv1WE2VFqqfaLQ=", + "lastModified": 1741228283, + "narHash": "sha256-VzqI+k/eoijLQ5am6rDFDAtFAbw8nltXfLBC6SIEJAE=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "c777dc8a1e35407b0e80ec89817fe69970f4e81a", + "rev": "38e9826bc4296c9daf18bc1e6aa299f3e932a403", "type": "github" }, "original": { @@ -798,9 +722,9 @@ "flake-parts": "flake-parts_2", "home-manager": "home-manager", "nixpak": "nixpak", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_2", "searx-randomizer": "searx-randomizer", - "systems": "systems_2" + "systems": "systems" }, "locked": { "lastModified": 1744892989, @@ -840,21 +764,6 @@ } }, "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_2": { "locked": { "lastModified": 1689347949, "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", @@ -869,7 +778,7 @@ "type": "github" } }, - "systems_3": { + "systems_2": { "locked": { "lastModified": 1689347949, "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", @@ -912,11 +821,11 @@ ] }, "locked": { - "lastModified": 1744644585, - "narHash": "sha256-p0D/e4J6Sv6GSb+9u8OQcVHSE2gPNYB5ygIfGDyEiXQ=", + "lastModified": 1741934139, + "narHash": "sha256-ZhTcTH9FoeAtbPfWGrhkH7RjLJZ7GeF18nygLAMR+WE=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "be6771e754345f18244fb00aae5c9e5ab21ccc26", + "rev": "150b0b6f52bb422a1b232a53698606fe0320dde0", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 2b6fa56..e9303de 100644 --- a/flake.nix +++ b/flake.nix @@ -13,20 +13,12 @@ packages = eachSystem ( system: { - inherit - (import ./packages { - pkgs = pkgsFor.${system}; - helix = inputs.helix.packages.${pkgs.system}.default; - }) - fish - wrapped-helix - kakoune - ; + inherit (import ./packages pkgsFor.${system}) fish helix kakoune; } ); apps = eachSystem (system: let - inherit (inputs.self.packages.${system}) fish wrapped-helix; + inherit (inputs.self.packages.${system}) fish helix; in { default = { type = "app"; @@ -34,7 +26,7 @@ }; helix = { type = "app"; - program = "${wrapped-helix}/bin/hx"; + program = "${helix}/bin/hx"; }; }); }; @@ -59,7 +51,5 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.systems.follows = "systems"; }; - - helix.url = "github:helix-editor/helix"; }; } diff --git a/hosts/common.nix b/hosts/common.nix index 5a9bef2..d627e4a 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -7,7 +7,7 @@ pkgs, ... }: let - inherit (self.packages.${pkgs.stdenv.system}) wrapped-helix fish; + inherit (self.packages.${pkgs.stdenv.system}) helix fish; in { environment.systemPackages = builtins.attrValues { inherit @@ -39,8 +39,8 @@ in { zip zoxide ; - inherit wrapped-helix fish; + inherit helix fish; }; # helix as the only editor, a reasonable choice. - environment.sessionVariables.EDITOR = pkgs.lib.getExe' wrapped-helix "hx"; + environment.sessionVariables.EDITOR = pkgs.lib.getExe' helix "hx"; } diff --git a/hosts/hermit/programs.nix b/hosts/hermit/programs.nix index 09e9dfc..3896031 100644 --- a/hosts/hermit/programs.nix +++ b/hosts/hermit/programs.nix @@ -52,7 +52,6 @@ nitch obsidian swww - manix microfetch nmap pamixer @@ -63,6 +62,7 @@ playerctl polkit pulsemixer + python3 ripgrep rmpc signal-desktop @@ -79,5 +79,6 @@ wordgrinder xournalpp ; + inherit (self.packages.${pkgs.stdenv.system}) helix; }; } diff --git a/packages/default.nix b/packages/default.nix index 4310e5f..bd69889 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -1,10 +1,7 @@ -{ - pkgs, - helix, -}: let - wrapped-helix = pkgs.callPackage ./helix.nix {inherit helix;}; +pkgs: let + helix = pkgs.callPackage ./helix.nix {}; kakoune = pkgs.callPackage ./kakoune.nix {}; fish = pkgs.callPackage ./shell {}; in { - inherit wrapped-helix kakoune fish; + inherit helix kakoune fish; } diff --git a/packages/helix.nix b/packages/helix.nix index c12db4c..763c8b0 100644 --- a/packages/helix.nix +++ b/packages/helix.nix @@ -4,6 +4,7 @@ alejandra, basedpyright, bash-language-server, + black, clang-tools, clippy, cmake-format, @@ -14,23 +15,25 @@ gdb, golangci-lint-langserver, gopls, + helix, lazygit, lib, lldb_19, marksman, nil, - nixd, + pyright, ruff, rust-analyzer, rustfmt, shellcheck, shfmt, + solargraph, + stdenv, superhtml, taplo, tinymist, typescript-language-server, vscode-langservers-extracted, - helix, ... }: let inherit (lib.meta) getExe; @@ -274,8 +277,6 @@ wrapped-helix = symlinkJoin { name = "helix-wrapped"; paths = [ - helix - # Bash bash-language-server # C/C++ @@ -283,12 +284,12 @@ clippy golangci-lint-langserver gopls + helix lldb_19 # Markdown marksman # Nix nil - nixd rust-analyzer rustfmt # Shell