nixos-config/home/lorri.nix

26 lines
446 B
Nix
Raw Normal View History

2021-09-10 23:49:21 +02:00
{ config, lib, ... }:
let
2022-01-11 16:08:21 +01:00
inherit (lib)
mkEnableOption
mkIf
;
2021-09-10 23:49:21 +02:00
cfg = config.my.home.lorri;
in
{
2022-01-11 16:08:21 +01:00
options.my.home.lorri = {
2021-09-10 23:49:21 +02:00
enable = (mkEnableOption "lorri daemon setup") // { default = true; };
};
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
2021-09-10 23:49:21 +02:00
services.lorri.enable = true;
programs.direnv = {
enable = true;
# FIXME: proper file, not lorri.nix
nix-direnv = {
enable = true;
};
2021-09-10 23:49:21 +02:00
};
};
}