From 892ba9b103636f7e1a88f16466c9fe666fdfe373 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 8 Mar 2025 12:42:13 -0600 Subject: [PATCH] services: add sysprof Signed-off-by: Myned --- options/custom/services/default.nix | 1 + options/custom/services/sysprof.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 options/custom/services/sysprof.nix diff --git a/options/custom/services/default.nix b/options/custom/services/default.nix index fbda214..eb22a8f 100644 --- a/options/custom/services/default.nix +++ b/options/custom/services/default.nix @@ -50,6 +50,7 @@ with lib; { #// swayidle.enable = true; swaync.enable = true; swayosd.enable = true; + sysprof.enable = true; systemd-lock-handler.enable = true; usbmuxd.enable = true; #// xembed-sni-proxy.enable = true; diff --git a/options/custom/services/sysprof.nix b/options/custom/services/sysprof.nix new file mode 100644 index 0000000..35fc0aa --- /dev/null +++ b/options/custom/services/sysprof.nix @@ -0,0 +1,17 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.custom.services.sysprof; +in { + options.custom.services.sysprof = { + enable = mkOption {default = false;}; + }; + + config = mkIf cfg.enable { + # https://gitlab.gnome.org/GNOME/sysprof + services.sysprof.enable = true; + }; +}