home: move lorri file to direnv

This commit is contained in:
Antoine Martin 2024-03-04 19:21:23 +01:00
parent f18238cd5c
commit 226e726551
2 changed files with 4 additions and 6 deletions

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./alacritty.nix ./alacritty.nix
./bat.nix ./bat.nix
./direnv.nix
./emacs.nix ./emacs.nix
./env.nix ./env.nix
./firefox.nix ./firefox.nix
@ -10,7 +11,6 @@
./git.nix ./git.nix
./gtk.nix ./gtk.nix
./laptop.nix ./laptop.nix
./lorri.nix
./mail.nix ./mail.nix
./rbw.nix ./rbw.nix
./rofi.nix ./rofi.nix

View file

@ -9,17 +9,15 @@
mkIf mkIf
; ;
cfg = config.my.home.lorri; cfg = config.my.home.direnv;
in { in {
options.my.home.lorri = { options.my.home.direnv = {
enable = (mkEnableOption "lorri daemon setup") // {default = true;}; enable = (mkEnableOption "setup direnv usage") // {default = true;};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.lorri.enable = true;
programs.direnv = { programs.direnv = {
enable = true; enable = true;
# FIXME: proper file, not lorri.nix
nix-direnv = { nix-direnv = {
enable = true; enable = true;
}; };