home: add config for helix #24

Merged
dadada merged 1 commit from helix into main 2022-11-01 19:14:50 +01:00
5 changed files with 21 additions and 0 deletions

View file

@ -17,6 +17,7 @@ let
"tmux"
"xdg"
"zsh"
"helix"
];
in
{

View file

@ -10,6 +10,7 @@
git = import ./git.nix;
gpg = import ./gpg.nix;
gtk = import ./gtk.nix;
helix = import ./helix;
keyring = import ./keyring.nix;
kitty = import ./kitty;
mako = import ./mako.nix;

View file

@ -0,0 +1,6 @@
theme = "dracula"
[editor]
line-number = "relative"
mouse = true
auto-completion = true

View file

@ -0,0 +1,2 @@
[[language]]
name = "rust"

View file

@ -0,0 +1,11 @@
{ config, pkgs, lib, ... }:
let
cfg = config.dadada.home.helix;
in {
options.dadada.home.helix.enable = lib.mkEnableOption "Enable helix editor";
config = lib.mkIf cfg.enable {
home.file.".config/helix".source = ./config;
home.packages = [ pkgs.helix ];
};
}