From 76357f1da8560e6a08570e8d7c71b816568c6dac Mon Sep 17 00:00:00 2001 From: Gustav Bruhn Date: Tue, 18 Mar 2025 18:34:39 +0100 Subject: [PATCH] manage helix with home manager and install helix --- hosts/framework/configuration.nix | 2 +- hosts/framework/home.nix | 5 ++++- modules/home-manager/helix.nix | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 modules/home-manager/helix.nix diff --git a/hosts/framework/configuration.nix b/hosts/framework/configuration.nix index 846526a..fa78893 100644 --- a/hosts/framework/configuration.nix +++ b/hosts/framework/configuration.nix @@ -105,8 +105,8 @@ # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - helix nil + discord # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # wget ]; diff --git a/hosts/framework/home.nix b/hosts/framework/home.nix index 72454f5..7bd0c55 100644 --- a/hosts/framework/home.nix +++ b/hosts/framework/home.nix @@ -1,6 +1,9 @@ { config, pkgs, ... }: -{ +{ + imports = [ + ../../modules/home-manager/helix.nix + ]; # Home Manager needs a bit of information about you and the paths it should # manage. home.username = "bruhng"; diff --git a/modules/home-manager/helix.nix b/modules/home-manager/helix.nix new file mode 100644 index 0000000..b910a75 --- /dev/null +++ b/modules/home-manager/helix.nix @@ -0,0 +1,14 @@ +{...}: +{ + programs.helix = { + enable = true; + defaultEditor = true; + settings ={ + theme = "catppuccin_mocha"; + editor = { + line-number = "relative"; + lsp.display-messages = true; + }; + }; + }; +}