feat: massive refactor
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeSwitch {
|
||||
inherit config;
|
||||
optionName = "all command line monitor tools";
|
||||
optionPath = [
|
||||
"cli"
|
||||
"monitor"
|
||||
"all"
|
||||
];
|
||||
config' = {
|
||||
let
|
||||
cfg = config.my.cli.monitor.all;
|
||||
in
|
||||
{
|
||||
options.my.cli.monitor.all = {
|
||||
enable = lib.mkEnableOption "all command line monitor tools";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.cli.monitor = {
|
||||
btop.enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user