nix: exorcise all with <expr>; uses

This commit is contained in:
Antoine Martin 2022-01-11 16:08:21 +01:00
parent ef59fd800e
commit 912073bee6
67 changed files with 576 additions and 259 deletions

View file

@ -1,13 +1,18 @@
{ config, lib, ... }:
let
inherit (lib)
mkEnableOption
mkIf
;
cfg = config.my.home.lorri;
in
{
options.my.home.lorri = with lib; {
options.my.home.lorri = {
enable = (mkEnableOption "lorri daemon setup") // { default = true; };
};
config = lib.mkIf cfg.enable {
config = mkIf cfg.enable {
services.lorri.enable = true;
programs.direnv = {
enable = true;