Skip to content

Commit

Permalink
home: move lorri file to direnv
Browse files Browse the repository at this point in the history
  • Loading branch information
alarsyo committed Mar 4, 2024
1 parent f18238c commit 226e726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
imports = [
./alacritty.nix
./bat.nix
./direnv.nix
./emacs.nix
./env.nix
./firefox.nix
Expand All @@ -10,7 +11,6 @@
./git.nix
./gtk.nix
./laptop.nix
./lorri.nix
./mail.nix
./rbw.nix
./rofi.nix
Expand Down
8 changes: 3 additions & 5 deletions home/lorri.nix → home/direnv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 226e726

Please sign in to comment.