From 8ffd6c056e5530b54b40504afb533075417a088a Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 16 Apr 2025 22:34:25 +0200 Subject: [PATCH 1/3] helix: add some kakoune-ish keybinds --- packages/helix.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/helix.nix b/packages/helix.nix index 3971282..305dbaa 100644 --- a/packages/helix.nix +++ b/packages/helix.nix @@ -42,6 +42,7 @@ editor = { cursorline = false; color-modes = true; + true-color = true; indent-guides.render = true; lsp = { enable = true; @@ -54,7 +55,6 @@ hidden = true; }; line-number = "relative"; - true-color = true; auto-format = true; completion-timeout = 5; mouse = true; @@ -86,10 +86,19 @@ A-r = ":reload"; A-x = "extend_to_line_bounds"; X = ["extend_line_up" "extend_to_line_bounds"]; + ";" = "flip_selections"; + "A-;" = "collapse_selection"; + + # Kakoune-like config + H = "extend_char_left"; + J = "extend_line_down"; + K = "extend_line_up"; + L = "extend_char_right"; }; select = { A-x = "extend_to_line_bounds"; X = ["extend_line_up" "extend_to_line_bounds"]; + g = {e = "goto_file_end";}; }; }; }; From 99474e28c0f1d916a0091d9ae66e9b2412f21bb4 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 16 Apr 2025 22:34:25 +0200 Subject: [PATCH 2/3] temperance/programs.nix: add oculante --- hosts/temperance/programs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/temperance/programs.nix b/hosts/temperance/programs.nix index f38dabb..9559ac9 100644 --- a/hosts/temperance/programs.nix +++ b/hosts/temperance/programs.nix @@ -47,6 +47,7 @@ in { nheko nicotine-plus obsidian + oculante swww pandoc pavucontrol From fff25b9905e2a6c4e459e2fda71729f842dce078 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 16 Apr 2025 22:34:25 +0200 Subject: [PATCH 3/3] flake.nix: fix helix for all systems --- flake.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index c9192dc..28699fc 100644 --- a/flake.nix +++ b/flake.nix @@ -1,20 +1,24 @@ { description = "My NixOS config flake"; outputs = inputs: let - pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; - eachSystem = inputs.nixpkgs.lib.genAttrs (import inputs.systems); + inherit (inputs.nixpkgs) lib; + eachSystem = lib.genAttrs (import inputs.systems); pkgsFor = inputs.nixpkgs.legacyPackages; in { nixosConfigurations = import ./hosts inputs; - devShells.x86_64-linux.default = pkgs.callPackage ./shell.nix {}; + devShells = + lib.mapAttrs (system: pkgs: { + default = pkgs.callPackage ./shell.nix {}; + }) + pkgsFor; - formatter.x86_64-linux = pkgs.alejandra; + formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra; packages = eachSystem ( system: { inherit - (import ./packages { + (import ./packages rec { pkgs = pkgsFor.${system}; helix = inputs.helix.packages.${pkgs.system}.default; })