Add helix to home-manager
This commit is contained in:
parent
ce1a70168a
commit
943522935b
2 changed files with 42 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
||||||
[
|
[
|
||||||
./programs
|
./programs
|
||||||
./distrobox.nix
|
./distrobox.nix
|
||||||
|
./helix.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./gpg.nix
|
./gpg.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
@ -16,7 +17,7 @@
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
lib.lists.optionals (osConfig.hm-pedro.de != "none")
|
lib.lists.optionals (osConfig.hm-pedro.de != "none")
|
||||||
[
|
[
|
||||||
./browsers
|
./browsers
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
@ -26,14 +27,14 @@
|
||||||
./spotify.nix
|
./spotify.nix
|
||||||
./vscodium.nix
|
./vscodium.nix
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
++ (
|
++ (
|
||||||
lib.lists.optionals (osConfig.hm-pedro.de == "hyprland")
|
lib.lists.optionals (osConfig.hm-pedro.de == "hyprland")
|
||||||
[
|
[
|
||||||
./hyprland
|
./hyprland
|
||||||
./scripts
|
./scripts
|
||||||
./waybar
|
./waybar
|
||||||
./mako.nix
|
./mako.nix
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
37
users/pedro/home-configuration/helix.nix
Normal file
37
users/pedro/home-configuration/helix.nix
Normal file
|
@ -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 = {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue