diff --git a/users/pedro/home-configuration/default.nix b/users/pedro/home-configuration/default.nix index 9a59aa8..8c3ddc9 100644 --- a/users/pedro/home-configuration/default.nix +++ b/users/pedro/home-configuration/default.nix @@ -7,6 +7,7 @@ [ ./programs ./distrobox.nix + ./helix.nix ./git.nix ./gpg.nix ./packages.nix @@ -16,7 +17,7 @@ ] ++ ( lib.lists.optionals (osConfig.hm-pedro.de != "none") -[ + [ ./browsers ./gtk.nix ./kitty.nix @@ -26,14 +27,14 @@ ./spotify.nix ./vscodium.nix ] - ) + ) ++ ( lib.lists.optionals (osConfig.hm-pedro.de == "hyprland") -[ + [ ./hyprland ./scripts ./waybar ./mako.nix ] - ); + ); } diff --git a/users/pedro/home-configuration/helix.nix b/users/pedro/home-configuration/helix.nix new file mode 100644 index 0000000..d0617bc --- /dev/null +++ b/users/pedro/home-configuration/helix.nix @@ -0,0 +1,37 @@ +{pkgs, ...}: { + programs.helix = { + enable = true; + defaultEditor = true; + languages = { + language-server = { + pyright = { + command = "${pkgs.pyright}/bin/pyright-langserver"; + args = ["--stdio"]; + config = {}; + }; + + nil = {command = "${pkgs.nil}/bin/nil";}; + }; + + language = [ + { + name = "nix"; + language-servers = ["nil"]; + auto-format = true; + formatter.command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt"; + } + + { + name = "python"; + language-servers = ["pyright"]; + auto-format = true; + formatter = { + command = "${pkgs.black}/bin/black"; + args = ["--quiet" "-"]; + }; + } + ]; + }; + settings = {}; + }; +}