home: add config for helix (#24)

This commit is contained in:
Tim Schubert 2022-11-01 19:14:49 +01:00 committed by GitHub
parent 4aa4296d23
commit f70053b110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 0 deletions

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 ];
};
}