home: move lorri file to direnv

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

View file

@ -10,7 +10,7 @@
./git.nix
./gtk.nix
./laptop.nix
./lorri.nix
./direnv.nix
./mail.nix
./rbw.nix
./rofi.nix

View file

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