home: add config for helix (#24)
This commit is contained in:
parent
4aa4296d23
commit
f70053b110
5 changed files with 21 additions and 0 deletions
|
@ -17,6 +17,7 @@ let
|
||||||
"tmux"
|
"tmux"
|
||||||
"xdg"
|
"xdg"
|
||||||
"zsh"
|
"zsh"
|
||||||
|
"helix"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
git = import ./git.nix;
|
git = import ./git.nix;
|
||||||
gpg = import ./gpg.nix;
|
gpg = import ./gpg.nix;
|
||||||
gtk = import ./gtk.nix;
|
gtk = import ./gtk.nix;
|
||||||
|
helix = import ./helix;
|
||||||
keyring = import ./keyring.nix;
|
keyring = import ./keyring.nix;
|
||||||
kitty = import ./kitty;
|
kitty = import ./kitty;
|
||||||
mako = import ./mako.nix;
|
mako = import ./mako.nix;
|
||||||
|
|
6
home/modules/helix/config/config.toml
Normal file
6
home/modules/helix/config/config.toml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
theme = "dracula"
|
||||||
|
|
||||||
|
[editor]
|
||||||
|
line-number = "relative"
|
||||||
|
mouse = true
|
||||||
|
auto-completion = true
|
2
home/modules/helix/config/languages.toml
Normal file
2
home/modules/helix/config/languages.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[[language]]
|
||||||
|
name = "rust"
|
11
home/modules/helix/default.nix
Normal file
11
home/modules/helix/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue