From 4678164d74c8ef4633af6fb600f5149a691af6d3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Mar 2021 00:01:54 +0000 Subject: [PATCH] home: htop: make it enable-able --- home/htop.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/home/htop.nix b/home/htop.nix index 5e8edc0..c4b33a9 100644 --- a/home/htop.nix +++ b/home/htop.nix @@ -1,6 +1,13 @@ -{ ... }: +{ config, lib, ... }: +let + cfg = config.my.home.htop; +in { - programs.htop = { + options.my.home.htop = with lib.my; { + enable = mkDisableOption "htop configuration"; + }; + + config.programs.htop = lib.mkIf cfg.enable { enable = true; }; }