helix: wrapped helix, added helix cachix
This commit is contained in:
parent
a332676958
commit
1f800c2091
5 changed files with 45 additions and 23 deletions
|
@ -1,37 +1,20 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
inputs',
|
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
self',
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.modules.system.programs.editors.helix;
|
cfg = config.modules.system.programs.editors.helix;
|
||||||
inherit (config.modules.other.system) username;
|
inherit (config.modules.other.system) username;
|
||||||
inherit (lib) mkIf makeBinPath;
|
inherit (lib) mkIf;
|
||||||
in {
|
in {
|
||||||
imports = [./languages.nix];
|
imports = [./languages.nix];
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# thanks fufexan, this is great!
|
package = self'.packages.helix;
|
||||||
package = inputs'.helix.packages.default.overrideAttrs (previousAttrs: {
|
|
||||||
makeWrapperArgs = with pkgs;
|
|
||||||
previousAttrs.makeWrapperArgs
|
|
||||||
or []
|
|
||||||
++ [
|
|
||||||
"--suffix"
|
|
||||||
"PATH"
|
|
||||||
":"
|
|
||||||
(makeBinPath [
|
|
||||||
clang-tools
|
|
||||||
marksman
|
|
||||||
nil
|
|
||||||
bash-language-server
|
|
||||||
shellcheck
|
|
||||||
])
|
|
||||||
];
|
|
||||||
});
|
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin_mocha";
|
theme = "catppuccin_mocha";
|
||||||
editor = {
|
editor = {
|
||||||
|
|
|
@ -127,12 +127,14 @@
|
||||||
"https://hyprland.cachix.org" # hyprland
|
"https://hyprland.cachix.org" # hyprland
|
||||||
"https://nixpkgs-unfree.cachix.org" # unfree-package cache
|
"https://nixpkgs-unfree.cachix.org" # unfree-package cache
|
||||||
"https://neovim-flake.cachix.org" # a cache for nvf
|
"https://neovim-flake.cachix.org" # a cache for nvf
|
||||||
|
"https://helix.cachix.org" # a chache for helix
|
||||||
];
|
];
|
||||||
|
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||||
|
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ3m4myogDm4OgU2ru6lIwPvuCVs="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
{inputs, ...}: {
|
{inputs, inputs', ...}: {
|
||||||
# NOTE: We use flake-parts' easyOverlay module to extend our default packages with some extra packages I want to have.
|
# NOTE: We use flake-parts' easyOverlay module to extend our default packages with some extra packages I want to have.
|
||||||
#
|
#
|
||||||
imports = [inputs.flake-parts.flakeModules.easyOverlay];
|
imports = [inputs.flake-parts.flakeModules.easyOverlay];
|
||||||
perSystem = {
|
perSystem = {
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
inputs',
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
@ -20,6 +21,7 @@
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
nushell = import ./extraPackages/nushell-wrapped.nix {inherit inputs lib pkgs;};
|
nushell = import ./extraPackages/nushell-wrapped.nix {inherit inputs lib pkgs;};
|
||||||
|
helix = import ./extraPackages/helix-wrapped.nix {inherit inputs inputs' lib pkgs;};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
35
parts/pkgs/extraPackages/helix-wrapped.nix
Normal file
35
parts/pkgs/extraPackages/helix-wrapped.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
inputs',
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
helix-wrapped = inputs.wrapper-manager.lib.build {
|
||||||
|
inherit pkgs;
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
wrappers.nushell-wrapped = {
|
||||||
|
basePackage = inputs'.helix.packages.default;
|
||||||
|
pathAdd = with pkgs; [
|
||||||
|
# C/C++
|
||||||
|
clang-tools
|
||||||
|
|
||||||
|
# Markdown
|
||||||
|
marksman
|
||||||
|
|
||||||
|
# Nix
|
||||||
|
nil
|
||||||
|
|
||||||
|
# Bash
|
||||||
|
bash-language-server
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
shellcheck
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
helix-wrapped
|
|
@ -34,7 +34,7 @@ iputils
|
||||||
asciinema
|
asciinema
|
||||||
inetutils
|
inetutils
|
||||||
scc
|
scc
|
||||||
oefetch
|
onefetch
|
||||||
wget
|
wget
|
||||||
cpufetch
|
cpufetch
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue