override helix with newer version
This commit is contained in:
parent
16666b8adf
commit
0695685e73
7 changed files with 253 additions and 10 deletions
|
@ -2,6 +2,7 @@
|
|||
, nixpkgs
|
||||
, home-manager
|
||||
, nix-doom-emacs
|
||||
, helix
|
||||
, ...
|
||||
} @ inputs:
|
||||
let
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
[[language]]
|
||||
name = "rust"
|
||||
|
||||
[[language]]
|
||||
name = "nix"
|
||||
formatter = "nixpkgs-fmt"
|
|
@ -3,10 +3,17 @@ let
|
|||
cfg = config.dadada.home.helix;
|
||||
in
|
||||
{
|
||||
options.dadada.home.helix.enable = lib.mkEnableOption "Enable helix editor";
|
||||
options.dadada.home.helix = {
|
||||
enable = lib.mkEnableOption "Enable helix editor";
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
description = "Helix editor package to use";
|
||||
default = pkgs.helix;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.file.".config/helix".source = ./config;
|
||||
home.packages = [ pkgs.helix ];
|
||||
home.packages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue