diff --git a/hosts/pi4/home-manager/default.nix b/hosts/pi4/home-manager/default.nix index 8c0f5a2..276b941 100644 --- a/hosts/pi4/home-manager/default.nix +++ b/hosts/pi4/home-manager/default.nix @@ -11,10 +11,10 @@ inputs.catppuccin.homeModules.catppuccin (lib.custom.relativeToRoot "shared/home-manager/btop.nix") (lib.custom.relativeToRoot "shared/home-manager/development/git.nix") - (lib.custom.relativeToRoot "shared/home-manager/development/nixvim") (lib.custom.relativeToRoot "shared/home-manager/fastfetch.nix") (lib.custom.relativeToRoot "shared/home-manager/fish.nix") (lib.custom.relativeToRoot "shared/home-manager/gpg.nix") + ./helix.nix ]; home.stateVersion = systemConfig.version; diff --git a/hosts/pi4/home-manager/helix.nix b/hosts/pi4/home-manager/helix.nix new file mode 100644 index 0000000..e64c8c4 --- /dev/null +++ b/hosts/pi4/home-manager/helix.nix @@ -0,0 +1,30 @@ +{ pkgs, theme, ... }: + +{ + catppuccin.helix = { + enable = true; + flavor = theme.flavor; + }; + + programs.helix = { + enable = true; + defaultEditor = true; + settings = { + editor = { + cursor-shape = { + normal = "block"; + insert = "bar"; + select = "underline"; + }; + lsp.display-messages = true; + }; + }; + languages.language = [ + { + name = "nix"; + auto-format = true; + formatter.command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt"; + } + ]; + }; +}