mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
20 lines
411 B
Nix
20 lines
411 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
options = {
|
||
|
services.sysprof = {
|
||
|
enable = lib.mkEnableOption (lib.mdDoc "sysprof profiling daemon");
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf config.services.sysprof.enable {
|
||
|
environment.systemPackages = [ pkgs.sysprof ];
|
||
|
|
||
|
services.dbus.packages = [ pkgs.sysprof ];
|
||
|
|
||
|
systemd.packages = [ pkgs.sysprof ];
|
||
|
};
|
||
|
|
||
|
meta.maintainers = pkgs.sysprof.meta.maintainers;
|
||
|
}
|